I already used the header link but not use. i used sequence order the script move to paypal payment.
But used header the first actions only worked and not save the database. And not move to paypal.
two actions in one forms
<script type="text/javascript">
function submitTwice(form){
form.action = 'save.php';
form.submit();
form.action = 'https://www.paypal.com/cgi-bin/webscr';
form.submit();
}
</script>
i have need clear correct code in this script. i am entered details, first action save.php and second action paypal payment.
This script only work in first action bt data not saved and second actions not worked.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.