Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Jump to new page based on form data

    Hi,

    I want my page to jump to a different page based on data collected in the form input fields. I can jump to a new page alright, using the following javascript:

    1. javascript code in form_a.html
    document.forms["form_A"].action = "page_x.html"l;
    document.forms["form_A"].submit();

    2. document.forms[0].action = "page_x.html"l;

    3. window.locaton = "page_x.html";

    4. window.location.href = "page_x.html";

    The problem is, I can see the new page was jumped to, but immediately it return back to the page that trigger the jump.

    Any idea? I need to finish the project before Christmas. Any help is greatly appreciated!

    Jeff

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,028
    Thanks
    75
    Thanked 4,325 Times in 4,291 Posts
    How can we guess, without seeing what is in page_x.html???

    My *guess* would be that page_x.html is expecting some information from the page you are jumping from. Maybe it even wants the <form> information.

    But in any case, the problem is on page_x.html
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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