dotkpay Posted July 1, 2011 Share Posted July 1, 2011 Is there any trouble with using "htmlentities($_SERVER['PHP_SELF'])" to post a form to its native page. How reliable is this method? Can it cause any errors in the script? Thanks in advance Quote Link to comment Share on other sites More sharing options...
WebStyles Posted July 1, 2011 Share Posted July 1, 2011 http://www.phpfreaks.com/forums/index.php?topic=326473.0 Quote Link to comment Share on other sites More sharing options...
dotkpay Posted July 1, 2011 Author Share Posted July 1, 2011 My main concern isn't how a form should be posted to the same page but rather inquiring if its good programming practice to post a form to the same page. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted July 1, 2011 Share Posted July 1, 2011 More often than not, I use one script to present and process forms. It makes validation error handling much easier than having to pass errors and field values back and forth with hidden fields/$_SESSION vars. 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.