Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Re: Recommend it Mod - Netscape errors and URLencode

Quote Reply
Re: Recommend it Mod - Netscape errors and URLencode In reply to
You are catching on quick Robert!

That looks like it will work (until it's tried, you never know though).

For what it's worth, the "url" portion of the data string (anything to the left of the "?" needs to have spaces put as " ". The "data" portion of the url, (anything to the right of the ?) needs to have the spaces coded as "+".

If you need a "+" to the right of the data string, you need to escape it, and code it as + (I think that's the code).

I have a table of URL special characters somewhere, I think I got it from one of the PHP books.

I haven't looked at your mod to see why you'd need to do this though.

If you are passing data from inside a <FORM> tag, though, the browser will properly encode the data for you.

I posted a refer-it program that uses all Links <%tags%> to pass data, you might want to look at it make the changes to yours to do the same. Basically, I pass the LinkID to the refer-it program, and it takes the rest of the data out of the Links table, and the user input, so the "raw" data is never encoded into the URL (except by the browser).





http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Subject Author Views Date
Thread Recommend it Mod - Netscape errors and URLencode Canucks 5451 Jun 6, 2000, 9:21 AM
Thread Re: Recommend it Mod - Netscape errors and URLencode
Robert 5351 Jun 6, 2000, 5:32 PM
Thread Re: Recommend it Mod - Netscape errors and URLencode
Robert 5320 Jun 6, 2000, 5:38 PM
Thread Re: Recommend it Mod - Netscape errors and URLencode
Canucks 5336 Jun 6, 2000, 6:30 PM
Thread Re: Recommend it Mod - Netscape errors and URLencode
Robert 5322 Jun 6, 2000, 7:05 PM
Thread Re: Recommend it Mod - Netscape errors and URLencode
pugdog 5320 Jun 7, 2000, 4:58 AM
Thread Re: Recommend it Mod - Netscape errors and URLencode
Robert 5299 Jun 7, 2000, 7:01 AM
Thread Re: Recommend it Mod - Netscape errors and URLencode
pugdog 5323 Jun 7, 2000, 7:22 AM
Thread Re: Recommend it Mod - Netscape errors and URLencode
Canucks 5306 Jun 7, 2000, 4:20 PM
Thread Re: Recommend it Mod - Netscape errors and URLencode
Canucks 5316 Jun 7, 2000, 5:04 PM
Thread Re: Recommend it Mod - Netscape errors and URLencode
pugdog 5293 Jun 7, 2000, 9:54 PM
Thread Re: Recommend it Mod - Netscape errors and URLencode
Canucks 5323 Jun 8, 2000, 11:02 AM
Post Re: Recommend it Mod - Netscape errors and URLencode
pugdog 5294 Jun 8, 2000, 3:29 PM