473,325 Members | 2,872 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,325 software developers and data experts.

displaying a drop down selection with ASP

Hello,
relatively new to programming and just trying to create a simple asp
page.
I have the following drop down menu on a html page and when submitting
i would like to call out on asp what someone has selected.

<select size="1" name="type">
<option value="Prospect">Prospect</option>
<option value="Suspect">Suspect</option>
<option value="Qualified">Qualified</option>
<option value="Proposed">Proposed</option>
<option value="Closed">Closed</option>
<option value="Lost">Lost</option>
</select></b></p>

I also have regular fields on the html page which works great when
submitting but for some reason i can't get the dropdown selection to
display

fname = request.form("fname")
lname = request.form("lname")
email = request.form("email")
type = request.form("type") <----- this is what i have to call a drop
down selection.

I get the following error

Microsoft VBScript compilation error '800a0400'

Expected statement

/chip/AddNew.asp, line 13

type = request.form("type")
^

Any help would be greatly appreciate.

Oct 11 '06 #1
6 1926
<bv***@hotmail.comwrote in message
news:11*********************@c28g2000cwb.googlegro ups.com...
Hello,
relatively new to programming and just trying to create a simple asp
page.
I have the following drop down menu on a html page and when submitting
i would like to call out on asp what someone has selected.

<select size="1" name="type">
<option value="Prospect">Prospect</option>
<option value="Suspect">Suspect</option>
<option value="Qualified">Qualified</option>
<option value="Proposed">Proposed</option>
<option value="Closed">Closed</option>
<option value="Lost">Lost</option>
</select></b></p>

I also have regular fields on the html page which works great when
submitting but for some reason i can't get the dropdown selection to
display

fname = request.form("fname")
lname = request.form("lname")
email = request.form("email")
type = request.form("type") <----- this is what i have to call a drop
down selection.

I get the following error

Microsoft VBScript compilation error '800a0400'

Expected statement

/chip/AddNew.asp, line 13

type = request.form("type")
^
"type" is a reserved word -- don't use it.
Oct 11 '06 #2
"McKirahan" <Ne**@McKirahan.comwrote in message
news:vq******************************@comcast.com. ..
<bv***@hotmail.comwrote in message
news:11*********************@c28g2000cwb.googlegro ups.com...
[snip]
type = request.form("type") <----- this is what i have to call a drop
down selection.

I get the following error

Microsoft VBScript compilation error '800a0400'

Expected statement

/chip/AddNew.asp, line 13

type = request.form("type")
^

"type" is a reserved word -- don't use it.
And yet this says it isn't:

VBScript Language Reference
URL:http://docs.rinet.ru/ZhPP/ch34.htm#S...fReservedWords

I'd try a different field name though.

This supports your approach:

Examples: ASP Request Object Form Collection
URL:http://www.netzone.ch/caspdoc/Ch9_ASPBuiltIn40.html

Oct 11 '06 #3
McKirahan wrote:
>"type" is a reserved word -- don't use it.

And yet this says it isn't:

VBScript Language Reference
URL:http://docs.rinet.ru/ZhPP/ch34.htm#S...fReservedWords
And yet this says it is:
http://support.microsoft.com/default.aspx/kb/216528

Who do you believe, Microsoft, or rinet.ru?

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Oct 11 '06 #4
"Dave Anderson" <NY**********@spammotel.comwrote in message
news:#r**************@TK2MSFTNGP04.phx.gbl...
McKirahan wrote:
"type" is a reserved word -- don't use it.
And yet this says it isn't:

VBScript Language Reference
URL:http://docs.rinet.ru/ZhPP/ch34.htm#S...fReservedWords

And yet this says it is:
http://support.microsoft.com/default.aspx/kb/216528

Who do you believe, Microsoft, or rinet.ru?
I agree that "type" is a reserved word.
I just didn't find a supporting link immediately.
Oct 11 '06 #5
McKirahan wrote:
I agree that "type" is a reserved word.
I just didn't find a supporting link immediately.
Yeah - I noticed right after I posted that you were responding to yourself.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Oct 11 '06 #6
that was it...thanks!
Dave Anderson wrote:
McKirahan wrote:
I agree that "type" is a reserved word.
I just didn't find a supporting link immediately.

Yeah - I noticed right after I posted that you were responding to yourself.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Oct 12 '06 #7

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

Similar topics

1
by: Dan | last post by:
This is one that has me stumped and I need an expert's input. Any ideas why the values from the second script-generated drop down list isn't recognized by the script to add time values to the...
5
by: SirPoonga | last post by:
I think I'd have to do a combination of ASP and javascript to do this. What I want to do fill the first drop down box with values from a database query. Then based off that selection fill in the...
2
by: kmnotes04 | last post by:
Is it possible to link one drop-down box to another? For example, if a name is chosen from a drop-down list, can another drop-down list then automatically display the person's office as a result of...
3
by: John Walker | last post by:
Hi, On an ASP.NET page I have a drop down list control. When the user pulls down the list and makes a selection, I perform validation, and if the validation fails I want the selected item in...
4
by: KitKat | last post by:
Problem trying to figure this out, using a combo box selection I need to go to each folder, Cam 1, Cam 2, Cam 4, Cam 6, Cam 7,and Cam 8 and display each picture (from selection) from each folder...
3
by: CSharpguy | last post by:
I have 3 drop downs that are populated from the databasem 4 of my web pages need to have this drop down, how can I trap the selection made in the drop down and popuate my grid on my form?
2
by: ponyeyes | last post by:
Hi There, I am a bit of a newbie to PHP programming and I would like to know how I can place a selected drop down option into a PHP variable and then produce an sql query which incorporates this...
3
by: amcoldspy | last post by:
Hi, am trying to create dynamic drop down boxes.. there are 3 drop down boxes. The second drop down box elements are to be update based on the selection made in the first drop down box...
4
by: bonneylake | last post by:
Hey Everyone, Well this is probably a pretty easy question, but for some reason i just can not figure it out. What i am trying to do is redisplay what was entered previously. I have figured...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.