Re: Form Name Attribute Help!
| From: | Kal Amry | Date: | Sun, 11 Nov 2001 00:28:56 +0000 |
| Subject: | Re: Form Name Attribute Help! | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74136@lists.php.net to get a copy of this message | ||
Thanks guy, well I have to edit a lot of forms then :)
"Chris Hobbs" <chobbs@silvervalley.k12.ca.us> wrote in message
news:3BEDB66E.3010400@silvervalley.k12.ca.us...
> It doesn't appear that the name attribute is passed (ref:
> http://www.blooberry.com/indexdot/html/tagpages/f/form.htm).
> Instead,
> try including the following in each of your forms:
>
> <input type='hidden' name='formname' value='formName1'>
>
> Then you can check $formname in file.php for the value.
>
> Hope this helps!
>
> Kal Amry wrote:
>
> > I have posted this question before so I'm giving another try in case new
> > people are looking at the news list!!
> >
> > If I have a form in named formName1 such as:
> >
> > <form name="formName1" action="file.php"
> > method="post">
> >
> > How can I get the name "formName1" from within file.php
> >
> > My original question was:
> >
> > 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
> >
> >
> >
> >
>
>
> --
> _______ ___ _ ____ _____
> Chris Hobbs / ____\ \ / / | | |/ ___\| __ \
> Head Geek | (___ \ \ / /| | | | (___ | | | |
> WebMaster \___ \ \ \/ / | | | |\___ \| | | |
> PostMaster ____) | \ / | |__| |____) | |__| |
> \____/ \/ \____/ \____/|_____/
> http://www.silvervalley.k12.ca.us
> chobbs@silvervalley.k12.ca.us
>