Auto Submitting a Form

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 24th, 2005, 15:24
Junior Member
Join Date: Sep 2005
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote

  #2 (permalink)  
Old Nov 24th, 2005, 16:15
Junior Member
Join Date: Sep 2005
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #3 (permalink)  
Old Nov 25th, 2005, 08:00
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Auto Submitting a Form

You is crazy!
Reply With Quote
Reply

Tags
auto, submitting, form

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 22:28.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43