Trying to get this form to post to my db with process.php and to another website using POST. Right now it will only load the second f.action. If I remove the first f.submit() it only does the first f.action. Any idea on getting this to work?
Form posting to multiple locations
9
Trying to get this form to post to my db with process.php and to another website using POST. Right now it will only load the second f.action. If I remove the first f.submit() it only does the first f.action. Any idea on getting this to work?
<script type="text/javascript">
<!--
function newWin(f)
{
f.target="_blank";
f.action="process.php?mobile_no=";
f.submit()
f.target="_blank";
f.actuon="secondsite"
f.submit();
return true;
}
//-->
</script>
</head>
<body>
<div data-role="page" id="page">
<form method="POST" action="secondsite" onsubmit="newWin(this)">
<div data-role="content">
<center>
<p><input type="text" id="mobile_no" name="mobile_no" placeholder="Phone Number"></p>
</center>
<p><input type="submit" value="Submit"></p>
</div>
</form>
</div>
<script type="text/javascript">
<!--
function newWin(f)
{
f.target="_blank";
f.action="process.php?mobile_no=";
f.submit()
f.target="_blank";
f.actuon="secondsite"
f.submit();
return true;
}
//-->
</script>
</head>
<body>
<div data-role="page" id="page">
<form method="POST" action="secondsite" onsubmit="newWin(this)">
<div data-role="content">
<center>
<p><input type="text" id="mobile_no" name="mobile_no" placeholder="Phone Number"></p>
</center>
<p><input type="submit" value="Submit"></p>
</div>
</form>
</div>
- dwoods
- [ 1 ] Thanks
- dwoods
- FirstSocialApps
- [ 1 ] Thanks
- [2] replies
- eswariseo
- [ 1 ] Thanks
- otfromtot
- ussher
- [ 1 ] Thanks
- SteveSRS
- [ 1 ] Thanks
- otfromtot
Next Topics on Trending Feed
-
9