Re: Re: multiple forms, one submit button
| From: | Jonathan Underfoot | Date: | Tue, 12 Feb 2002 10:14:26 +0000 |
| Subject: | Re: Re: multiple forms, one submit button | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-16851@lists.php.net to get a copy of this message | ||
Ok I think I understand where your comming from now. You have multiple
forms on one HTML page.. and you want one submit button to send all the
forms to their respective PHP scripts. I dont know how to do that, with my
knowledge of HTML I don't even think its possible.
I would make one form (boy I hope this part is possible.) And write one PHP
script to handle the entire thing... if it works out better that more than
one PHP script should be used to handle diffrent things logicaly, then you
could always include the individual scripts into this one mega script and
run that.
I hope that made sense and worked out for you. This is simmilar to
somethign I do where when someone submits a date and activity it is
automatically checked for duplicity and accuracy before posting to the
database (3 scripts.)
-Jonathan
----- Original Message -----
From: "Alecs" <r3ddr@yahoo.com>
To: <php-db@lists.php.net>
Sent: Tuesday, February 12, 2002 4:59 AM
Subject: [PHP-DB] Re: multiple forms, one submit button
> I wonder how to you POST all forms with one submit (and without JS) ...
>
> "Marius Ursache" <marius.ursache@tm.cit.alcatel.fr> wrote in message
> news:3C68C31D.538FBD05@tm.cit.alcatel.fr...
> > hi
> >
> > is it posibile to have in a php script multiple forms and only one
> > submit button? if yes, how you "recover" the submited data?
> >
> > ex:
> > <form method="POST" action=$REQUEST_URI name=form1>
> > bla bbla
> > </form>
> >
> > <form method="POST" action=$REQUEST_URI name=form2>
> > bgf
> > </form>
> >
> > <form method="POST" action=$REQUEST_URI name=form3>
> > gjhdf
> >
> > <input type="submit" name = "test" value = "lala" >
> > </form>
> >
> > tnx
> > --
> >
> >
> > Marius Ursache (3563 || 3494)
> >
> > \|/ ____ \|/
> > "@'/ ,. \`@"
> > /_| \__/ |_\
> > \__U_/
> >
> >
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>