This would be my code:
<%
v_yesno=request.getParameter("f_yesno"
if (v_yesno == "yes"
{
do code A
}
else
{
do code B
}
%>
<input type=radio value="yes" name=f_yesno> YES
<input type=radio value="no" name=f_yesno> NO
</body>
</html>
When someone chooses YES on the form, and submits the form my IF statement is not recognizing the value "yes".. but when I spit out the value of v_yesno it's value is "yes". So I'm unsure why my if statement is not seeing the "yes". What am I doing wrong?
<%
v_yesno=request.getParameter("f_yesno"
if (v_yesno == "yes"
{
do code A
}
else
{
do code B
}
%>
<input type=radio value="yes" name=f_yesno> YES
<input type=radio value="no" name=f_yesno> NO
</body>
</html>
When someone chooses YES on the form, and submits the form my IF statement is not recognizing the value "yes".. but when I spit out the value of v_yesno it's value is "yes". So I'm unsure why my if statement is not seeing the "yes". What am I doing wrong?