jay_bo Posted April 28, 2010 Share Posted April 28, 2010 Okay i have a shopping cart which has the ability to add and remove items in the cart, which is done by javascript..as seen below function del(pid){ if(confirm('Do you really mean to delete this item')){ document.form1.pid.value=pid; document.form1.command.value='delete'; document.form1.submit(); } } function update_cart(){ document.form1.command.value='update'; document.form1.submit(); } It use to work fine when i add <form name="form1" method="POST"> but i recently changed it to the code below, so that i can link it to paypal. <form name="form1" action="https://www.sandbox.paypal.com/uk/cgi-bin/webscr" method="POST"> Since i add this when i click to update an item it doesn't update, it just submits the form.....Now i know this has something to do with the javascript line.... document.form1.submit(); Is there anyway that i could get it to refresh the page? Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted April 28, 2010 Share Posted April 28, 2010 You're submitting data to paypal, so it really depends on how paypal decides to handle it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.