View Full Version : Jump to new page based on form data

12-09-2010, 11:40 PM

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;

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!


Old Pedant
12-10-2010, 12:30 AM
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