Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

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 December 7th, 2003, 10:27 PM
Mischico Mischico is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 13 Mischico User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Passing select list values to a db

Please help!

I am trying to pass a value from a select list to Access database using ASP. The value selected is not being recognized by the db.

My first thought was that the select list was not passing the values> However, on the error page the data is presented in the POST Data section.

Then, I thought I could pass the selected value to a text box in the same form and submit it to the db.

Now, I am thinking I could pass the selected value to hidden field.

I will also add that I don't know how to do any of them.

Can some please show me the best method to take?



Code
________________________________________________
<form method="POST" action="<%=MM_editAction%>" name="Purchaser">
<select name="SelectList">
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
<option value="D">D</option>
</select>

<input name="Submit" type="submit" value="Continue">

<input type="hidden" name="AutoNumber" value="<%= Session("AutoNumber") %>">

<input type="hidden" name="SelectList">
<input type="hidden" name="MM_insert" value="Purchaser">
</form>
__________________________________________________ _

Reply With Quote
  #2  
Old December 8th, 2003, 01:33 PM
Mischico Mischico is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 13 Mischico User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I figured this out.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Passing select list values to a db


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 1 hosted by Hostway