Link to home
Start Free TrialLog in
Avatar of edonkey
edonkey

asked on

Invalid character

I received such error:
Error Type:
Microsoft VBScript compilation (0x800A0408)
Invalid character
school_new_step_3.asp, line 133, column 22

Succeed(class_list.asp?schooluuid="&schoolid&"&prov="&xProvince&"&area="&xAreaid&","")
----------------------------------------------------^

8888888888888888888888888888888888888888888888888888888888888888888888888888
<%
xProvince=trim(request.form("prov"))
xAreaid=trim(request.form("area"))
schoolid=cstr(xAreaid&"000"&seed)

Succeed("class_list.asp?schooluuid="&schoolid&"&prov="&xProvince&"&area="&xAreaid&"","")
--------------> ERROR LINE


Sub Succeed(refreshurl,sucmsg)
Response.Write _
"<meta http-equiv=""refresh"" content=""1;URL="&refreshurl&""">"&_
"<div align=""center"" style=""font-size:9pt""><table cellpadding=0 cellspacing=1 border=0 width=600  bgcolor=#ce0000><tr><th height=25> * Succeed Message</th></tr><tr><td bgcolor=#ffffff  height=30> <b>Succeed:</b><br>"&sucmsg&"</td></tr></table></div>"
End Sub
%>
Avatar of deighc
deighc

Try:

Succeed("class_list.asp?schooluuid=" & schoolid & "&prov=" & xProvince & "&area=" & xAreaid,"")
ASKER CERTIFIED SOLUTION
Avatar of JNSTAUB
JNSTAUB
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Try this
Succeed(class_list.asp?schooluuid=" & schoolid & " prov=" & xProvince & "area=" & xAreaid & ","")
Avatar of YZlat
deighc got it
Avatar of edonkey

ASKER

deighc:
Error Type:
Microsoft VBScript compilation (0x800A0414)
Cannot use parentheses when calling a Sub
/class/school_new_step_3.asp, line 133, column 95
Succeed("class_list.asp?schooluuid=" & schoolid & "&prov=" & xProvince & "&area=" & xAreaid,"")
----------------------------------------------------------------------------------------------^

JNSTAUB:
Error Type:
Microsoft VBScript compilation (0x800A0414)
Cannot use parentheses when calling a Sub
/class/school_new_step_3.asp, line 133, column 102
Succeed("class_list.asp?schooluuid=" + schoolid +"&prov=" + xProvince +"&area="+ xAreaid , "blabla")
-----------------------------------------------------------------------------------------------------^

rajuare:
Error Type:
Microsoft VBScript compilation (0x800A0408)
Invalid character
/class/school_new_step_3.asp, line 133, column 22
Succeed(class_list.asp?schooluuid=" & schoolid & " prov=" & xProvince & "area=" & xAreaid & ","")
---------------------^

remove the parenthesis!
Avatar of edonkey

ASKER

What's parenthesis??
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
try this,

Succeed(class_list.asp?schooluuid=" & schoolid & " prov=" & xProvince & "area=" & xAreaid & ",")