|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
displaying a drop down selection with ASPrelatively 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. <bv***@hotmail.com> wrote in message
Show quoteHide quote news:1160585954.924906.10490@c28g2000cwb.googlegroups.com... "type" is a reserved word -- don't use it.> 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") > ^ "McKirahan" <N***@McKirahan.com> wrote in message [snip]news:vqOdnYdzO_ORubDYnZ2dnUVZ_rydnZ2d@comcast.com... > <bv***@hotmail.com> wrote in message > news:1160585954.924906.10490@c28g2000cwb.googlegroups.com... Show quoteHide quote > > type = request.form("type") <----- this is what i have to call a drop And yet this says it isn't:> > 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. VBScript Language Reference URL:http://docs.rinet.ru/ZhPP/ch34.htm#SummaryofReservedWords 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 McKirahan wrote:
>> "type" is a reserved word -- don't use it. And yet this says it is:> > And yet this says it isn't: > > VBScript Language Reference > URL:http://docs.rinet.ru/ZhPP/ch34.htm#SummaryofReservedWords 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.
Show quote
Hide quote
"Dave Anderson" <NYRUMTPELVWH@spammotel.com> wrote in message I agree that "type" is a reserved word.news:#rVDY7W7GHA.1560@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#SummaryofReservedWords > > And yet this says it is: > http://support.microsoft.com/default.aspx/kb/216528 > > Who do you believe, Microsoft, or rinet.ru? I just didn't find a supporting link immediately. McKirahan wrote:
> I agree that "type" is a reserved word. Yeah - I noticed right after I posted that you were responding to yourself.> I just didn't find a supporting link immediately. -- 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. that was it...thanks!
Dave Anderson wrote: Show quoteHide quote > 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.
Other interesting topics
Convert the code from gb2312 to unicode in ASP
Carriage Return and Response.Write Output Issue Help in writing SQL using request.form.item(i) Percentage Calculation question.... ADODB.Field error '80020009' Cannot find record XML - load contents onto page. how to run a bat file in remote PC through ASP Running Bat file from ASP on Windows Server x64 problem. Request.BinaryRead(count) wierd |
|||||||||||||||||||||||