This is a discussion on "Auto Submitting a Form" within the JavaScript Forum section. This forum, and the thread "Auto Submitting a Form are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Auto Submitting a Form
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Auto Submitting a Form
Hi Everyone,
Before I start to explain my problem, I've probably gone a bit around the houses but here it is anyway... I'm trying to take the information entered as a username and password in an ASP form, validate it and then either redirect to an "Incorrect" page or auto submitted the information via a new form to the "Details" page. I want the Details page to open in a new window and I want the form submitted so that I can avoid Session variables and QueryStrings. The redirect to the "Incorrect" page is not a problem, but when I'm trying to do the "Deatils" page I can't seem to open a new window and pass the values over and retrieve them using Request.Form. Currently I'm trying to do it this way: <form name="UserDetails" method="post" action="javascript:window.open('LoggedIn.asp');sel f.location('Index.asp');"> <input type="hidden" name="From" value="login"> <input name="Username" type="hidden" value="<%=username%>"><br> <input name="Password" type="hidden" value="<%=password%>"> </form> <script language="javascript"> document.forms['UserDetails'].submit(); </script> Can anyone tell me where I'm going wrong? |
|
|
|
|||
|
Re: Auto Submitting a Form
I've figured out a really obvious way around it.
Thanks to everyone who looked at the message, sorry for any inconvenience. |
![]() |
| Tags |
| auto, submitting, form |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Submitting a parent form from a child window in IE 7 | livehed | JavaScript Forum | 0 | Feb 15th, 2007 16:23 |
| Link form to different page after submitting | facehead | Web Page Design | 3 | Nov 3rd, 2006 21:05 |
| submitting an enquiry form | dbh_21 | Web Page Design | 11 | Jul 11th, 2006 16:38 |
| Submitting Web form results to a database | theproman23 | Databases | 2 | Jun 30th, 2005 13:21 |
| Submitting a form on one page! | courtjester | Classic ASP | 5 | Sep 10th, 2004 19:03 |