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? Link to comment https://forums.phpfreaks.com/topic/158249-solved-need-a-little-bit-of-help/ 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 Link to comment https://forums.phpfreaks.com/topic/158249-solved-need-a-little-bit-of-help/#findComment-834641 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 Link to comment https://forums.phpfreaks.com/topic/158249-solved-need-a-little-bit-of-help/#findComment-834709 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.