Jump to content

Please help two actions in one form


avky14

Recommended Posts

two actions in one forms 

 

<script type="text/javascript">

 function submitTwice(form){

  form.action = 'save.php';

 form.submit();


 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.

 

 

Link to comment
Share on other sites

Your last post makes no sense at all. You "used the header link but not use"? Did you or didn't you "use" it? And you "used sequence order the script move". What does that mean.

 

If you want to do two things when the form is submitted, then just DO THEM! You don't need to do another submit.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.