View Full Version : ot 2 forms and want to merge them? Desperate for help:(

08-24-2007, 07:49 AM
I got 2 forms that submit data to 2 different databases

I want to merge the forms into 1 but still work seperately.

So 1 submit button but 2 different form methods, for example:

<form method="post" action="http://www.url1.com>
<form method="post" action="http://www.url2.com>

However, both forms have name and email fields, but I want JUST 1 name and email field but I want the data to submit to the 2 seperate databases.

So how can I do this, and what would I type. Im a PHP newbie.

Please helpe me, thanks

08-24-2007, 09:05 AM
Depends on how the entire script is set up.

08-24-2007, 01:44 PM
could do it in javascript so if one submit button is clicked it disables the fields not needed than submits the form, or have two radio buttons select either one to enable and disable certain fields