Re: form handling

From: Date: Thu, 11 Aug 2011 18:28:10 +0000
Subject: Re: form handling
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-314501@lists.php.net to get a copy of this message
On 11 Aug 2011, at 19:25, Chris Stinemetz wrote: > I have two forms on the same php script. Is it possible to submit both > forms to the same action="processform.php" with a single submit > button? > > If so would you give me examples on how to handle this? Three options spring to mind... 1) Combine them into one form in the HTML. 2) Run some JS on submit that combines the values into one form and submits that. 3) Use AJAX to submit the forms separately but simultaneously. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/

« previous php.general (#314501) next »