-
Getting user's two word selection from a dropdown
Hi all,
I'm trying to pick up a user's selection from a simple selection box using
a form:
<Form <% Request.ServerVariables("Script_Name") %>" METHOD="POST">
<SELECT name=browseType>
<OPTION value="New Items">New Items</OPTION>
<OPTION value="Old Items">New Items</OPTION>
<INPUT TYPE=image src="image_files/Go.gif" NAME="Browse" VALUE="Browse">
</form>
However after posting only the first word is picked up for the variable -
i.e. New or Old.
dim browsetype
browseType = Request.Form("BrowseType")
Can anyone please explain to me why this is and how I can fix it.
Many thanks in advance,
Dave
-
Re: Getting user's two word selection from a dropdown
hi dave,
you need to replace the space with "%20" like this:
<OPTION value="New%20Items">New Items</OPTION>
<OPTION value="Old%20Items">New Items</OPTION>
"Dave" <webdev.@127.0.0.1> wrote:
>
>Hi all,
>
>I'm trying to pick up a user's selection from a simple selection box using
>a form:
>
><Form <% Request.ServerVariables("Script_Name") %>" METHOD="POST">
><SELECT name=browseType>
><OPTION value="New Items">New Items</OPTION>
><OPTION value="Old Items">New Items</OPTION>
><INPUT TYPE=image src="image_files/Go.gif" NAME="Browse" VALUE="Browse">
></form>
>
>However after posting only the first word is picked up for the variable
-
>i.e. New or Old.
>
>dim browsetype
>browseType = Request.Form("BrowseType")
>
>Can anyone please explain to me why this is and how I can fix it.
>
>Many thanks in advance,
>Dave
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks