cancel
Showing results for 
Search instead for 
Did you mean: 

PHP Sign-up with multiple Lists Checkboxes v3?

Highlighted
New Member

PHP Sign-up with multiple Lists Checkboxes v3?

Is it possible to redirect a user to a different page through the use of PHP?

Say the user goes to and http://www.example.com/page.php I want to redirect them to,www.example.com/index.php. how would I do so without the use of a meta refresh? Possible?

This could even protect my pages from unauthorized users.

1 REPLY 1
Moderator

Re: PHP Sign-up with multiple Lists Checkboxes v3?

Hello,

 

Thank you for reaching out to the Developer Support team here at Constant Contact. 

 

How quickly are you wanting them to go from page.php to index.php? Do you plan on displaying content on page.php? If you are just looking to use page.php to run code and then direct back to index.php you can place

header('Location: index.php'); 
exit();

at the end of your code before any HTML is loaded and it will direct them after running the code.


Regards,
David B.
Tier II API Support Engineer