Hi,
I want to pass checkbox values from one ASP page to another. The values are in an array.
Though I want to use If Then Else so that if the user has checked the check box, the value is displayed and if it has not been checked, another word (like 'No') is displayed
I am able to display the value of the checkbox if it has been checked, but I am having probs with it not being checked.
My code is below. I call in the values from the previous ASP page and split them. But then when a person hasn't ticked a box, the else statement never happens!
Massages = Request.form("Massage")
Massages = Split(Massages, ",")
For Each Massage in Massages
if Massage="Massage" then %>
<b>Yes</b>
<% else %>
<b>No</b>
<% end if
Next %>
Can anyone please shed some light on this please?
I want to pass checkbox values from one ASP page to another. The values are in an array.
Though I want to use If Then Else so that if the user has checked the check box, the value is displayed and if it has not been checked, another word (like 'No') is displayed
I am able to display the value of the checkbox if it has been checked, but I am having probs with it not being checked.
My code is below. I call in the values from the previous ASP page and split them. But then when a person hasn't ticked a box, the else statement never happens!
Massages = Request.form("Massage")
Massages = Split(Massages, ",")
For Each Massage in Massages
if Massage="Massage" then %>
<b>Yes</b>
<% else %>
<b>No</b>
<% end if
Next %>
Can anyone please shed some light on this please?