Jump to content

header()


watagal

Recommended Posts

Greetings--In my 'processLogin.php' file, I have everything working fine - except when I try to redirect to either the 'success' page or 'failed' page. I get the 404 error.Here's what I have:

header("Location: http://localhost/ck.com/index.php");

And I don't have any HTML code in this file.I'm using xammp as my server and "ck.com" is my local directory. Any ideas as to why?TiA, Gal

Link to comment
Share on other sites

Maybe you should try a relative link, like header("Location: index.pxp"), or wherever the file is relative to PHP page that's running.

Link to comment
Share on other sites

put: ini_set('error_reporting',E_ALL|E_STRICT); at the top of the page, and see if it gives any errorsif it gives u an 404 error, then to what page does it go?

Link to comment
Share on other sites

Maybe you should try a relative link, like header("Location: index.pxp"), or wherever the file is relative to PHP page that's running.
Thanks, going relative worked.Wander- thanks for the "ini_set('error_reporting',E_ALL|E_STRICT);" tip - I found all kinds of information there.Gal
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...