Re: Self-Process php forms or not?

From: Date: Fri, 24 Apr 2009 13:28:47 +0000
Subject: Re: Self-Process php forms or not?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-291934@lists.php.net to get a copy of this message
What you are describing is known as a "self executing" script where the script posts back to itself. In other words it has two passes - the first uses the GET method to build the screen for the user, which may or may not be empty, while the second uses the POST method to send the user's changes back to the server for validation and updating. By dealing with both the GET and POST in a single script it means that you don't have to redirect to a different script if you have to redisplay the data because of invalid use input. -- Tony Marston http://www.tonymarston.net http://www.radicore.org ""MEM"" <talofo@gmail.com> wrote in message news:002301c9c4d9$03515920$09f40b60$@com... I'm trying to understand the advantages behind opting by using a Self-Process PHP Form, instead of having a form and then point the action of the form to another .php page. Can anyone point me some resources about this. Why using one instead of another. What are the main advantages? Regards, Márcio

« previous php.general (#291934) next »