Re: Self-Process php forms or not?
| From: | kranthi | Date: | Fri, 02 Oct 2009 07:41:13 +0000 |
| Subject: | Re: Self-Process php forms or not? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298463@lists.php.net to get a copy of this message | ||
I try to avoid the use of hidden form elements as much as possible,
especially for tracking whether a user has submitted a form or not...
I use name="submit" for the submit button instead, that will pass the
value of the submit button to the action script.
above all i use a template engine, smarty to take care of the
presentation for me(like deciding whether to show the form and/or a
success/failure message)