Multiple form submits in body tag -
although have found few questions related this, none has quite addressed specific situation. have php script want call other scripts, without clicking. have used structure success:
<body onload="form1.submit()"> <?php . . . if ($value=="yes"){ print<<<here <form method="post" id="form1" action="nextapp.php"> <input="hidden" name="data" value="some data"> </form> here } else . . .
the above works perfectly. however, if want able react 2 different forms? not work:
<body onload="form1.submit(); form2.submit()">
nor does
<body onload="form1.submit()" onload="form2.submit()">
there few other weirder variations tried that, not surprisingly (due being weird), didn't work.
any ideas appreciated!
Comments
Post a Comment