Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dumb Coding for Netscape Question

Status
Not open for further replies.

Dollie

MIS
May 2, 2000
765
US
Please forgive the numerous silly questions I've got! I seem to get my head up my ASP a lot! This is part 2 to a question I had last week about inconsistencies between IE and Netscape.

I have tried to create a basic search page with results and details. In Netscape, I can get results (incorrect ones at that), but when one is clicked for detail, I get the error: "Due to malformed syntax, the request could not be understood by the server. The client should not repeat the request without modifications."

I've been handed the code, but I have no idea what to do with it! I was told to use urlencode:
Recordset_action=<%=server.urlencode(&quot;this_variable_value&quot; )%>

Where do I put the code? Do I put it on the results or detail page? Once the page is determined, where in the page code do I put it?

Once I get all three pages to actually appear in both IE and Netscape, then I'll move on to why I can't search by keywords, and why I keep getting the same results no matter what search terms I use!

Thanks for any help in advance!
 
Dollie,
The usual cause for your error is special characters in your url. Using urlencode is indeed the fix. You usually use it while you're building a link to a url that includes spaces or other special characters. So, If you want to pass a query string like &quot;Jim Brown&quot;, this will fail:
[IGNORE]
<a href = ' Brown'>

so you need to do this:

<a href = ' Brown&quot; )%>'>



[/IGNORE]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top