Try this and make necessary adjustments to your PHP code as needed...
<HTML>
<HEAD>
<TITLE>Your Web Page Title Goes Here</TITLE>
<SCRIPT LANGUAGE=\"javascript\" type=\"text/javascript\">
function dual_submit()
{
document.form1.action="page.php";
document.form1.submit();
document.form1.action="ph2.php";
document.form1.submit();
}
</SCRIPT>
</HEAD>
<BODY>
<FORM name=\"form1\" action="" method="post">
<input type=\"text\" name=\"page1\" value=\"This gets posted to
page.php\"><BR>
<input type=\"text\" name=\"page2\" value=\"This gets posted to
ph2.php\"><BR>
<input type=\"submit\" name=\"submit\" value=\"Update Data\"
onSubmit=\"dual_submit();\">
</FORM>
</BODY>
</HTML>
I hope this helps!
--- In [email protected], onurdyh <[EMAIL PROTECTED]> wrote:
>
> hii everybody;
> I have a problem about forms.I want to send a value from index.htm
to pg.php and pg2.php.
>
> by form action How can I do it ??
>
> <form action="pg.php" method="post">
> <form action="ph2.php" method="post">
> ,,,,
> ,,,,,
> </form>
> </form>
> it sends to first page but not to second page..
> I wait for your helps thanksss
>
>
> ---------------------------------
> Stay in the know. Pulse on the new Yahoo.com. Check it out.
>
> [Non-text portions of this message have been removed]
>
The php_mysql group is dedicated to learn more about the PHP/MySQL web database
possibilities through group learning.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php_mysql/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/php_mysql/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/