siberneil Posted April 26, 2009 Share Posted April 26, 2009 What is the difference between these twoaction="$_SERVER['PHP_SELF']" and action="webpage with form.php"I am trying to perform server side validation and then if everything is ok start a new login session. Link to comment Share on other sites More sharing options...
jlhaslip Posted April 26, 2009 Share Posted April 26, 2009 The only real differenc is the fact that the second one requires you to change pages.The php_self one allows your form-handling script to be on the same page as the form, which I find easier to write, but the other way works, too. Using php_self is called the Redux method. Google "Ullman redux" for a tutorial. Link to comment Share on other sites More sharing options...
Synook Posted April 26, 2009 Share Posted April 26, 2009 Also if you use PHP_SELF if you change the page name you don't have to also modify the action. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.