Forum Moderators: coopster

Message Too Old, No Replies

Two actions one form

         

taras78

6:12 pm on May 9, 2007 (gmt 0)

10+ Year Member



I have a form with a few inputs.

When a user submits the form he/she gets redirected to another server with some inputs as parametres (form has to use POST ,not GET). When the transaction is done he/she gets redirected back to my server.
However, in the form there's a few input that I'd like to add to a database, before the user gets redirected.

Example:
<form method="post" name="frm" action="http://not.my.server/process.php">
<input type="hidden" name="firstname" value="alpha">
<input type="hidden" name="lastname" value="beta">
<input type="hidden" name="company" value="gamma">
<input type="hidden" name="currency" value="usd">
</form>

I'd like to add the input "company" to the database, before the user gets redirected.
How can I do this?

eelixduppy

8:49 pm on May 9, 2007 (gmt 0)



Hello,

We have a nice library thread titles single form posted to multiple locations [webmasterworld.com] that may guide you to solving your solution. :)

Good luck!