Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-24-2007, 06:49 AM   PM User | #1
Ernster
New to the CF scene

 
Join Date: Aug 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Ernster is an unknown quantity at this point
ot 2 forms and want to merge them? Desperate for help:(

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
Ernster is offline   Reply With Quote
Old 08-24-2007, 08:05 AM   PM User | #2
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
Depends on how the entire script is set up.
__________________
Fumigator is offline   Reply With Quote
Old 08-24-2007, 12:44 PM   PM User | #3
usik
New Coder

 
Join Date: Aug 2007
Location: Wagga, Australia
Posts: 59
Thanks: 0
Thanked 1 Time in 1 Post
usik is on a distinguished road
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
usik is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:21 AM.


Advertisement
Log in to turn off these ads.