Re: HTML Forms, PHP Question
| From: | Richard Lynch | Date: | Mon, 20 Nov 2006 22:28:23 +0000 |
| Subject: | Re: HTML Forms, PHP Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244902@lists.php.net to get a copy of this message | ||
On Sun, November 19, 2006 10:00 am, Stephen wrote:
> 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.
You can, but it's likely to be more pain than it's worth, and confuse
a great deal of logic. At least, that was my experience.
As for "how" you could do it by including a TYPE="HIDDEN" in each FORM.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?