Re: HTML Forms, PHP Question
| From: | tedd | Date: | Sun, 19 Nov 2006 17:37:22 +0000 |
| Subject: | Re: HTML Forms, PHP Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244851@lists.php.net to get a copy of this message | ||
At 11:00 AM -0500 11/19/06, Stephen wrote:
Hi First question to the list. I am writing a control panel for a web site and there will be about 20 HTML forms. Instead of creating 20 PHP files to process the submit data, is there a way that I can do this with a single PHP file. Either specify a specific function for each form, or use a case statement somehow to direct to the function. Thanks! StephenStephen: Not a problem, I use one php script to handle many forms using a case statement. You can use sessions or pass a POST/GET variable to itself to know which form to present. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com