Author |
Topic  |
|
e3stone
Average Member
  
USA
885 Posts |
Posted - 03 May 2001 : 17:17:14
|
I'm trying to make my site pass the w3.org validator and I'm getting this error: quote: Line 173, column 50: ... href="pop_profile.asp?mode=display&id=1">admin</a>, </font> ... ^ Error: unknown entity "id" (explanation...)
I read the explination and it states that "....because '&' has special status in HTML."
So, my question is, is there a series of characters that can replace the "&" symbol so I don't get this error? or is this something that I can ignore?
<-- Eric --> 
http://insidewaco.com/forum |
|
Doug G
Support Moderator
    
USA
6493 Posts |
Posted - 03 May 2001 : 18:04:34
|
server.htmlencode() or server.urlencode()
====== Doug G ====== |
 |
|
e3stone
Average Member
  
USA
885 Posts |
Posted - 03 May 2001 : 18:28:53
|
Alright. So, what's the correct syntax for that? <href=server.urlencode("pop_profile.asp?mode=display&id=1"> ???
I've never used server.urlencode before.
edit: ahhhh, nevermind. I found a page about it. http://www.aspalliance.com/pkvnm/samples/urlencode.asp
Actually, I'll just replace all the '&' signs with '&' <-- Eric --> 
http://insidewaco.com/forum
Edited by - e3stone on 03 May 2001 18:30:16
Edited by - e3stone on 03 May 2001 18:38:47 |
 |
|
e3stone
Average Member
  
USA
885 Posts |
Posted - 03 May 2001 : 20:03:32
|
what is the correct syntax if I wanted to use server.urlencode() on this link: quote: <form method="POST" action="topic.asp?TOPIC_ID=<% =rsPoll("TOPIC_ID") %>&FORUM_ID=<% =rsPoll("FORUM_ID") %>&CAT_ID=<% =rsPoll("CAT_ID")%>&Topic_Title=<% =ChkString(rsPoll("T_SUBJECT"),"urlpath")%>&Forum_Title=<% =ChkString(left(rsPoll("F_SUBJECT"), 50),"urlpath") %>&pollresults=1" name="Vote">
I'm not sure whether I put the server.urlencode inside the quotes of the link or what. I'm clueless 
<-- Eric --> 
http://insidewaco.com/forum
Edited by - e3stone on 03 May 2001 20:04:43 |
 |
|
|
Topic  |
|