URLencode Problem with Netscape

Results 1 to 3 of 3

Thread: URLencode Problem with Netscape

  1. #1
    Corbin Guest

    Default URLencode Problem with Netscape

    We have the following code that we are using server.urlencode on<BR>because some of the "makes" will have spaces. <BR><BR>response.write "&#060;a href=""make.asp?make=" &<BR>server.urlencode(rs("Make")) & """&#062;" & rs("Make") & "&#060;/a&#062;"<BR><BR>Of course, everything works great in IE, but in Netscape I get the 400 Bad Request Due to malformed syntax when the make has a space in it.<BR><BR>For example, "American Champion" turns into "American+Champion" if you view source in Netscape but it still returns the 400 error. Any ideas? This is driving me CRAZY!<BR><BR>corbin

  2. #2
    Rob Guest

    Default RE: URLencode Problem with Netscape

    replace(server.urlencode(rs("Make")), "+", "%20") & """>" & rs("Make") & "</a>"<BR><BR>Not sure on this...right off the top of my head.<BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: URLencode Problem with Netscape

    try it but be sure to type double quote and single quote.<BR>response.write "&#060;a href=&#039make.asp?make=" & server.urlencode(rs ("Make")) & "&#039&#062;" & rs("Make") & "&#060;/a&#062;"<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts