watagal Posted May 11, 2008 Share Posted May 11, 2008 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 More sharing options...
Ingolme Posted May 11, 2008 Share Posted May 11, 2008 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 More sharing options...
Wander Posted May 11, 2008 Share Posted May 11, 2008 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 More sharing options...
zppblood Posted May 11, 2008 Share Posted May 11, 2008 Error 404 means that the file doesn't exist on the server, so make sure you are pointing to the right path to the file you want them to go to. Link to comment Share on other sites More sharing options...
watagal Posted May 12, 2008 Author Share Posted May 12, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.