SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Jump to new page based on form data

    Hi,

    I need to jump to different pages based on user input in current form. I had tried using javascript to jump, it worked for a second or two, then it jump back to the calling form. Here are the methods I used:

    url is the intented url, e.g. "form2.htm"

    1. from form "form1":
    document.forms["form1"].action = url;
    document.forms["form1"].submit();

    2. document.forms[0].action = url;

    3. window.locaton = url;

    4. window.location.href = url;

    All works, except that it didn't stay, it jumped back to form1 immediately.

    I need to finish a project by the end of Christmas, any help will greatly appreciated!

    Jeff

  2. #2
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    1,963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know if this is appropriate but you could use your server side scripting


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
  •