sylvestermoy
08-14-2005, 07:17 AM
Howdy to the good people here at codingforums.com :)
I would like to know if someone could help. I have to remake a form, and wondering why if I change this code:
<%
if invalidsurname= true then
response.write "Surname:"
else
response.write "Surname:"
end if
%>
to this:
<div class="red_text">
<% if invalidsurname= true then response.write "Surname:" else %></div>
<div class="bold_text">Surname:</div><% end if %>
Why it doesn't work.. I get a 'expected statement' error on the /end if
I would like to know if someone could help. I have to remake a form, and wondering why if I change this code:
<%
if invalidsurname= true then
response.write "Surname:"
else
response.write "Surname:"
end if
%>
to this:
<div class="red_text">
<% if invalidsurname= true then response.write "Surname:" else %></div>
<div class="bold_text">Surname:</div><% end if %>
Why it doesn't work.. I get a 'expected statement' error on the /end if