Alejandro
|
| Posted: 01/19/2004, 2:12 PM |
|
I was wondering how can I process update for 2 forms in the same page with only one click?
Thanks for any idea.
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 01/19/2004, 2:23 PM |
|
Please see: http://forums.codecharge.com/posts.php?post_id=25612
The only way to do this is by using a lot of JavaScript and copying the information from 1 form to hidden fields of the 2nd form when it is submitted.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Waheed Ahmed
|
| Posted: 06/21/2005, 3:18 AM |
|
This is solution
<script language="javascript">
function doMagic(thePage ){
document.forms[0].action=thePage;
document.forms[0].submit();
}
</script>
.
.
.
<form method=post>
Name <input type=text name="abc">
<button onclick="doMagic('takedata.php');">Submit 1</button>
<button onclick="doMagic('takedata.asp');">Submit 2</button>
</form>
take care and enjoy
|
|
|
 |
waheed Ahmed
|
| Posted: 06/21/2005, 3:22 AM |
|
<script language="javascript">
function doMagic(thePage ){
document.forms[0].action=thePage;
document.forms[0].submit();
document.forms[1].submit();
}
</script>
.
.
.
<form method=post>
Name <input type=text name="abc">
<button onclick="doMagic('takedata.php');">Submit 1</button>
</form>
|
|
|
 |