RE: [PHP] 2 Forms On 1 Page
| From: | Jeff Oien | Date: | Sat, 03 Nov 2001 21:21:06 +0000 |
| Subject: | RE: [PHP] 2 Forms On 1 Page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73359@lists.php.net to get a copy of this message | ||
> On Saturday 03 November 2001 11:28 am, you wrote:
> > If I have two forms on one page that both use the same script how
> > do I get only the fields on one of the forms to be submitted? If that
> > makes any sense.
> > Jeff Oien
>
> as long as you enclose each form within it's own set of <form>...</form> tags
> and make sure the submit button for each form is within those tags, it should
> only submit one form at a time. (also make sure that you don't assign the
> same "name=" parameter to both forms)
>
> --kurt
I was missing a closing </form> tag in there. Thanks for letting me know
it should work, that helped me figure it out.
Jeff Oien