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/
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/