PLEASE HELP!!!!!
futurstar18 | Posted 5:21pm 4. June 2008 Server Time |
I have made the honor role three out of four semesters in the two years since i started attending school here. Balancing my school responsibilities and the responsibilities i have to my teammates as an integral part of the men's track team has been tough at times, but i wouldn't have it any other way. i have volunteered for the past two years at the Missouri state track and cross country championships, at the salvation Army and numerous times at the Samaritan center located here in Jefferson City.
i was filling out a scholarship applicantion can somebody please tellme why i am getting this message and what i can do. trying to submit it i the for i get the message
Microsoft VBScript compilation error '800a0409'
Unterminated string constant
/collegeForm.asp, line 20
lname=replace(request.form("txtLastName","," ")
-----------------------------------------------^
line twenty falls in the text that at the beginning of the page.
thanks in advance
|
katy8439 | Posted 2:27am 5. June 2008 Server Time |
You're missing a quotation mark:
lname=replace(request.form("txtLastName","," ")
Should Be
lname=replace(request.form("txtLastName",""," ")
------------------------------------------/\
|
Extra quote here
You also need to add into the second set of "" what you want to replace. For example, if I want to replace all commas with a space I'd put:
lname=replace(request.form("txtLastName",","," ")
Note that you may get an "Invalid use of replace" error if you try and replace something that's not there so you may want to run a check first. For example:
LastName = Request.Form("LastName")
IF INSTR(LastName, ",")=>1 THEN
LastName = Replace(LastName,",", " ")
END IF
Hope that helps :)
Katy
Reply to Post PLEASE HELP!!!!!
|
|
|