...

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



jmlynn
12-09-2010, 10:40 PM
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

Old Pedant
12-09-2010, 11:30 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum