Submit two places one click
Here is something that might help.
Having a similar issue, but with a redirect. If the POST happens then the redirect gets skipped, but when it is switched the redirect interferes with the POST action.
Looking for something where both can happen at the same time not one after another. Any help appreciated.
Hope the snippet above helps with what you are trying to do.
Here is something that might help.
Code:
<form name=myForm action= "mypage.php" method=post>
Name <input type="text" name="username">
Pass <input type="password" name="password">
<input type="submit" value="Send" name="split"
onclick="return SplitButton();">
<script language="javascript">
<!--
function splitButton()
{
document.myForm.action = "otherpage.php" // 1st location
document.myForm.submit(); // Submit 1st location
document.myForm.action = "furtherpage.php" // 2nd location
document.myForm.submit(); // Submit 2nd location
return true;
}
-->
</script>
Having a similar issue, but with a redirect. If the POST happens then the redirect gets skipped, but when it is switched the redirect interferes with the POST action.
Looking for something where both can happen at the same time not one after another. Any help appreciated.
Hope the snippet above helps with what you are trying to do.