header redirect not sending the variable
Posted: Wed Mar 08, 2006 2:58 pm
Hi,
I have a page (contact_us.php) which submits to contact_us_process.php
After some form validation on contact_us_process.php, I have the following code:
I get the following error:
The error page: http://www.mydomain.com/contact_us_resu ... sult=error cannot be found on the server.
The url in the address bar is still:
http://www.mydomain.com/contact_us_process.php
Any ideas why?
Thanks!
I have a page (contact_us.php) which submits to contact_us_process.php
After some form validation on contact_us_process.php, I have the following code:
Code: Select all
$fileErrorPage = 'contact_us_result.php?result=error';
header('Location: $fileErrorPage');
exit;The error page: http://www.mydomain.com/contact_us_resu ... sult=error cannot be found on the server.
The url in the address bar is still:
http://www.mydomain.com/contact_us_process.php
Any ideas why?
Thanks!