dmccabe Posted May 15, 2009 Share Posted May 15, 2009 I have done quite a bit of PHP in the past and mostly with forms and stuff. I have always used action="<?php echo $_SERVER['PHP_SELF']; ?>" with no issues. However I am just starting a new form for someone and when submit is clicked then I am getting a 404 error and the URL is displayed as: http://localhost/samweller/%3C?php%20echo%20$_SERVER['PHP_SELF'];%20?> Any ideas why? Quote Link to comment Share on other sites More sharing options...
MadTechie Posted May 15, 2009 Share Posted May 15, 2009 Its not parsing the php, reasons #1 you don't have PHP running on the server #2 your file isn't of a PHP type (ie index.php should work but index.html will probably fail) depending on the file types Quote Link to comment Share on other sites More sharing options...
dmccabe Posted May 15, 2009 Author Share Posted May 15, 2009 See this is what happens when you dont get to do any programming for a while. THanks MadTechie Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.