webref.eu Posted July 25, 2008 Share Posted July 25, 2008 Hi All I would like the forum's opinions and thoughts on whether when creating a user registration form it is better to post the form back to itself or to post it to a second page. Currently I favour the latter, but I am a new php coder and would appreciate thoughts from those with more experience. Thanks All. Link to comment https://forums.phpfreaks.com/topic/116630-form-validation-to-postback-or-not/ Share on other sites More sharing options...
MFHJoe Posted July 25, 2008 Share Posted July 25, 2008 I tend to go for the first one. It's just less files to maintain, and, as far as I know, works just as well. Sometimes there are situations where you need to post to another page, but only rarely. Link to comment https://forums.phpfreaks.com/topic/116630-form-validation-to-postback-or-not/#findComment-599679 Share on other sites More sharing options...
fanfavorite Posted July 25, 2008 Share Posted July 25, 2008 I agree, post to the same page. Mainly due to the fact that if you need to return them to the page again for not filling out a form or an error or something, you don't have to repost the variables when redirecting back to the page for them to fix the errors. Link to comment https://forums.phpfreaks.com/topic/116630-form-validation-to-postback-or-not/#findComment-599685 Share on other sites More sharing options...
discomatt Posted July 25, 2008 Share Posted July 25, 2008 It's really preference here... there's no 'better' way. Link to comment https://forums.phpfreaks.com/topic/116630-form-validation-to-postback-or-not/#findComment-599766 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.