Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 3rd, 2005, 06:26 PM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to m3m0mx
Default Retrieve value from <select>

Hi everybody, I'm looking for a solution for my problem: I want to take the values from some dropdownlist and add them to a variable, this variable will be used to find an specific file in a directory.

I used asp connection to bring to the dropdownlist some values from a database but I need to catch it in some variable and some others values entered by the user too.

If you like to check my page is:
http://www50.brinkster.com/m3m0dtsi/radio.asp
Those values on the dropdownlists I wanted to catch...

thanx

 
Old March 3rd, 2005, 07:07 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

1..Why so many forms on the one page? You only need one, the tag should be something like:
<form name="someName" action="pageNameToPostValuesTo.asp" method="post">

2..You dont need name="radio" in each of your <option> tags. The <Select Name="radioselect"> is all you need to name. When your form gets submitted the chosen value will be held in:
<%= request.form("radioselect") %>

3..The remaining values will be held in the named request object of each of your elements 'once the form is submitted'



Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
<select> </select> prabhash_singh11 PHP How-To 2 March 11th, 2008 09:08 AM
select="<b>" AlDugan XSLT 8 March 24th, 2006 02:01 PM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
HELP: XSL -> HTML <select selected=true> jedbartlett XSLT 4 October 7th, 2004 11:16 PM
<marquee><b>About CHAT App. in PHP4</b></marquee> Ramkrishna PHP How-To 1 September 11th, 2004 07:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.