Results 1 to 2 of 2

Thread: Help with form redirect after submit.

  1. #1
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with form redirect after submit.

    Hello all,

    <input type="image" src="images/pay-now-pp.gif" alt="Pay with PayPal" onClick="SetCookie ('NumberOrdered', 0, null, '/');document.location=('redirect.html')">

    I use the above code to submit a shopping cart total to PayPal and then redirect to a thank you page. It works fine in IE and FireFox.

    In Chrome, it will send the cart contents to PayPal but will not redirect to the thank you page.

    I have tried window.location, window.open, window.location.href= but none of them work in Chrome.

    Any suggestions???

    Thanks,
    missileman
    Last edited by missileman; 01-07-2013 at 08:16 PM.

  2. #2
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Apparently Chrome does not like the word redirect???

    I have a work around and it involves using a timer:
    <input type="image" src="images/pay-now-pp.gif" alt="Pay with PayPal" onClick="SetCookie ('NumberOrdered', 0, null, '/');javascript:timer=setTimeout('move()',5000)">

    onClick sends the contents of the cart right to PayPal in a new tab/window and the cart page is sent to my redirect.html Thank You Page.

    The js timer code:

    <script type="text/javascript">
    var time = null
    function move() {
    window.location = 'redirect.html'
    }
    //-->
    </script>

Similar Threads

  1. Replies: 1
    Last Post: 03-22-2011, 11:02 PM
  2. Replies: 0
    Last Post: 02-17-2011, 02:42 AM
  3. Replies: 0
    Last Post: 03-24-2010, 02:54 PM
  4. Form action Mailto need to open new page on submit and submit email
    By lstammer in forum Looking for such a script or service
    Replies: 0
    Last Post: 12-06-2007, 05:41 PM
  5. Validate and redirect form submit
    By vicksm in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 06-28-2005, 06:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •