...

View Full Version : Help with $_REQUEST and & sign



robbiez
02-01-2010, 08:39 PM
Hi
I am passing a variable in the URL and using $_REQUEST to get the value of the variable.
The variable is a product name and contains a string such as "black", "red" or "black & gold".
Most of the values are returned correctly except those the contain an & sign. The & sign and everything after it are dropped from the string.

Is there a cure for my problem.

Thanks
Rob

_Aerospace_Eng_
02-01-2010, 08:54 PM
When you pass the data in the url use urlencode on the data then when you retrieve it use urldecode.

robbiez
02-01-2010, 09:03 PM
Excellent Job
Many Thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum