I'm having problems validating my HTML code because of some
ASP code I'm using:
---Start Code---
<%
If rs("Average") = 0 Then
VotingImage = "<img src="/images/0.gif" alt='No votes yet'>"
ElseIf rs("Average") >= 1 And rs("Average") < 2 Then
VotingImage = "<img src=/images/1.gif alt='1 out of 6 stars'>"
End If
%>
<!-- Insert stars-->
<%=VotingImage% >
---End Code---
The problem is of course that the code inserted, and used in the
HTML code in the end result is : <img src=/images/1.gif alt='1 out of 6 stars'>
The attribute value /images/1.gif for the scr attribute isn't enclosed in single or
double quotation marks as it should be, and this results in the code not being
validated as proper HTML. :-/
I have tried enclosing it in quotation marks both this and that way, but it doesn't
work..... and it's driving me nuts. :-(
--
Torbjørn Pettersen
Editor/Webmaster
FantaFiction
www.fantafiction.com