473,394 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Passing Value Problem

This should work, but I can't see the value when it hits the ASP code. I am
trying to get the hang of this before moving forward with my project

HTML code

<form action="updTicket.asp" method="post">
<select name="selSA" size="1" style="width: 200px; font-size: 10px;">
<option value="">Team 1</option>
<option value="">Team 2</option>
<option value="">Team 3</option>
<input type=submit value="Update">
<input type=reset value="Reset">
</form>

ASP code

updSA = request.form("selSA")
response.write updSA
response.end


Jul 22 '05 #1
2 1146
Gazing into my crystal ball I observed "Doug" <da***@msn.com> writing in
news:OJ**************@tk2msftngp13.phx.gbl:
This should work, but I can't see the value when it hits the ASP code.
I am trying to get the hang of this before moving forward with my
project

HTML code

<form action="updTicket.asp" method="post">
<select name="selSA" size="1" style="width: 200px; font-size: 10px;">
<option value="">Team 1</option>
<option value="">Team 2</option>
<option value="">Team 3</option>
<input type=submit value="Update">
<input type=reset value="Reset"> </form>

ASP code

updSA = request.form("selSA")
response.write updSA
response.end


<select name="selSA" size="1" style="width: 200px; font-size: 10px;">
<option value="" selected="selected">Choose a team</option>
<option value="1" >Team 1</option>
<option value="2">Team 2</option>
<option value="3">Team 3</option>
</select>

<% updSA = request.form("selSA")%>

You have to give a VALUE to get a value.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #2
> HTML code

<form action="updTicket.asp" method="post">
<select name="selSA" size="1" style="width: 200px; font-size: 10px;">
<option value="">Team 1</option>
<option value="">Team 2</option>
<option value="">Team 3</option>
<input type=submit value="Update">
<input type=reset value="Reset">
</form>

ASP code

updSA = request.form("selSA")
response.write updSA
response.end


Like Adrienne pointed out the value in your code are all empty strings.
put something between the quotes after where it says value=
and then, as if by magic, a value will be posted.
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Dave | last post by:
I'm currently working on a small project (admitedly for my CS class) that compares the time difference between passing by value and passing by reference. I'm passing an array of 50000 int's. ...
58
by: jr | last post by:
Sorry for this very dumb question, but I've clearly got a long way to go! Can someone please help me pass an array into a function. Here's a starting point. void TheMainFunc() { // Body of...
25
by: Victor Bazarov | last post by:
In the project I'm maintaining I've seen two distinct techniques used for returning an object from a function. One is AType function(AType const& arg) { AType retval(arg); // or default...
8
by: kalinga1234 | last post by:
there is a problem regarding passing array of characters to another function(without using structures,pointer etc,).can anybody help me to solve the problem.
7
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID...
39
by: Mike MacSween | last post by:
Just spent a happy 10 mins trying to understand a function I wrote sometime ago. Then remembered that arguments are passed by reference, by default. Does the fact that this slowed me down...
6
by: MSDNAndi | last post by:
Hi, I get the following warning: "Possibly incorrect assignment to local 'oLockObject' which is the argument to a using or lock statement. The Dispose call or unlocking will happen on the...
12
by: Andrew Bullock | last post by:
Hi, I have two classes, A and B, B takes an A as an argument in its constructor: A a1 = new A(); B b = new B(a1);
5
by: Steve | last post by:
Hi, I currently have a problem passing a variable value from one page to another. Once a form submit button is pressed java pops up a window and displays some information. The problem being is...
12
by: Mike | last post by:
Consider the following code: """ struct person { char *name; int age; }; typedef struct person* StructType;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.