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 Link to comment https://forums.phpfreaks.com/topic/240896-self-posting/ 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 Link to comment https://forums.phpfreaks.com/topic/240896-self-posting/#findComment-1237394 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. Link to comment https://forums.phpfreaks.com/topic/240896-self-posting/#findComment-1237397 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. Link to comment https://forums.phpfreaks.com/topic/240896-self-posting/#findComment-1237398 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.