Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- posting form data to two php scripts at once
December 17, 2006, 1:08 am
rate this thread
following code but it doesn't work. the data is sent only to the first
<form method="post" action="insert.php" action="mail.php">
Email<input type="text" name="email" value ="" size="20" />
<input type="submit" value="submit" />
Is there a solution?
Re: posting form data to two php scripts at once
You simply can't submit two forms at once.
I'd propose to use AJAX's XMLHttpRequest. As a starting point, look
Basically, you need to instantiate two XMLHttpRequest object, and fire
them one after the other. Both XMLHttpRequest get fired asynchronously,
if used using correct settings.
- » How to get the source code of a method/function call?
- — Previous thread in » PHP Scripting Forum