Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 September 9th, 2003, 07:01 AM
Registered User
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default About Options

[:)I have created 3 options(select) box (not only 3 option i mean 3 different option boxes)in html page and i use javascript to go another ASP page when i clicked any option and how to know in ASP page which option box i clicked.
Say
one select name ram
another hari
i used
ram.selected but i didn't work

Please help me
please

rabin
 
Old September 24th, 2003, 02:11 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 171
Thanks: 0
Thanked 1 Time in 1 Post
Default

You need to request the values.

<%
OptionBox1 = request("OptionBox1")
if OptionBox1 <> "" then Option1 = true
OptionBox2 = request("OptionBox2")
if OptionBox2 <> "" then Option2 = true
OptionBox3 = request("OptionBox3")
if OptionBox3 <> "" then Option3 = true
%>

Keep in mind that the variable "OptionBox1" is the value that has been passed. The variable "Option1" just tells you whether OptionBox1 was selected.

That help???






Similar Threads
Thread Thread Starter Forum Replies Last Post
startup options mjuliao Access 4 November 22nd, 2005 04:45 PM
Control Options...help! kallhands Pro VB 6 2 August 13th, 2005 07:27 PM
Viewing Options gmoney060 Classic ASP Basics 2 August 8th, 2004 05:33 PM
Options Dialog ZiqXx C# 7 July 8th, 2004 06:08 AM
Display Options shadowpug VB.NET 2002/2003 Basics 3 March 10th, 2004 04:46 PM





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