Re: Form Name Attribute
| From: | Mike Harvey | Date: | Mon, 12 Nov 2001 14:40:12 +0000 |
| Subject: | Re: Form Name Attribute | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74290@lists.php.net to get a copy of this message | ||
I would use a <hidden> field and look for that variable.
--
Mike
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MICHAEL R. HARVEY <Sculptor>
Web Creation - http://vestudiohost.com
Internet Business Tools - http://ibiz-tools.com
Sculpture, Craft, Jewelry - http://sculpture-by-mrh.com
http://jewelry-by-mrh.com http://craft-by-mrh.com
New Product Innovations and Development. Ph: 845-279-8295
"Kal Amry" <kamry@cox.rr.com> wrote in message
news:20011110082058.32818.qmail@pb1.pair.com...
> Hi guys, If I have a code in file1.php such as:
>
> <form name=formName1 action=file2.php method=post>
> code..........
> code..........
> </form>
>
> And
>
> <form name=formName2 action=file2.php method=post>
> code..........
> code..........
> </form>
>
> Now in file2.php, I need to check which form I am receiving!! How do I
> check!!
>
> In other words, let's assume we only have the form names "formName1" and
> "formName1" - What code I can use in file2.php to get the name of the
> calling form. I just want to know how can I get the name of the form (in
the
> above case, formName1 or formName2)
>
> Thanx
>
>