xWastedMindx
Technical User
Im trying to make a selection box, with two options and its giving me the error in the subject line.
VBSCRIPT Runtime Error '800a000d' Type Mismatch: 'SELECTED'/filepath here
Below is the section of code that is causing the problem. Im not sure what it is.. and also, down at the bottom, there is suppose to be a Submit button, but I cant seem to get it working. Thanks if anyone can help.
<font face="Arial" size="2" color="darkgreen">
<p><b>Payment Information:</b></font>
<font face="Courier" size="2">
<br><b>type of credit card:</b>
<select name="cctype">
<option value="1">
<%=SELECTED( cctype, "1" )%> >VISA
<option value="2">
<%=SELECTED( cctype, "2" )%> > Mastercard
</select>
<br><b>credit card number:</b>
<input name="ccnumber" size="20" maxlength="20" value="<%=Server.HTMLEncode( ccnumber )%>">
<br><b>credit card expires:</b>
<input name="ccexpires" size="20" maxlength="20" value="<%=Server.HTMLEncode( ccexpires )%>">
<br><b>name on credit card:</b>
<input name="ccname" size="20" maxlength="20" value="<%=Server.HTMLEncode( ccname )%>">
<input type="submit" value="Register">
VBSCRIPT Runtime Error '800a000d' Type Mismatch: 'SELECTED'/filepath here
Below is the section of code that is causing the problem. Im not sure what it is.. and also, down at the bottom, there is suppose to be a Submit button, but I cant seem to get it working. Thanks if anyone can help.
<font face="Arial" size="2" color="darkgreen">
<p><b>Payment Information:</b></font>
<font face="Courier" size="2">
<br><b>type of credit card:</b>
<select name="cctype">
<option value="1">
<%=SELECTED( cctype, "1" )%> >VISA
<option value="2">
<%=SELECTED( cctype, "2" )%> > Mastercard
</select>
<br><b>credit card number:</b>
<input name="ccnumber" size="20" maxlength="20" value="<%=Server.HTMLEncode( ccnumber )%>">
<br><b>credit card expires:</b>
<input name="ccexpires" size="20" maxlength="20" value="<%=Server.HTMLEncode( ccexpires )%>">
<br><b>name on credit card:</b>
<input name="ccname" size="20" maxlength="20" value="<%=Server.HTMLEncode( ccname )%>">
<input type="submit" value="Register">