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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -