Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 27th, 2004, 12:40 PM
jsherman jsherman is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 22 jsherman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
posting a form

Help please... I am working with a form that has a selection box and when the value of the select box changes I would like it to submit the form to a page in a variable set by the on_change sub of the select box... any ideas...

Reply With Quote
  #2  
Old January 29th, 2004, 04:13 AM
rletanab rletanab is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Philippines
Posts: 21 rletanab User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to rletanab
Try the following!!!!
'rename/change the html files to in the value part of option to work properly.

<FORM>
<SELECT ONCHANGE="location = this.options[this.selectedIndex].value;">
<OPTION VALUE="myhome.html">My Home Page
<OPTION VALUE="myresume.html">Resume
<OPTION VALUE="myhobbies.html">Hobbies
<OPTION VALUE="mydog.html">My Dog
</SELECT>
</FORM>

Reply With Quote
  #3  
Old January 29th, 2004, 08:05 AM
jsherman jsherman is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 22 jsherman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
That's close... But there are other items in the form including a password... And I would like the entire form with it's current values posted so when the page comes back the values still exist...

Reply With Quote
  #4  
Old January 29th, 2004, 08:16 AM
rletanab rletanab is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Philippines
Posts: 21 rletanab User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to rletanab
To pass a value just add a question mark (?)variable name,= then the value.

<FORM>
<SELECT ONCHANGE="location = this.options[this.selectedIndex].value;">
<OPTION VALUE="myhome.asp?Password=abcd">My Home Page
<OPTION VALUE="myresume.asp?Password=abcd&username=a">Resume
<OPTION VALUE="myhobbies.asp">Hobbies
<OPTION VALUE="mydog.asp">My Dog
</SELECT>
</FORM>

Reply With Quote
  #5  
Old January 30th, 2004, 12:20 PM
jsherman jsherman is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 22 jsherman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
But wouldn't that put the password in clear text in the address bar...

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > posting a form


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway