Re: the '&' character and PHP...?

From: Date: Thu, 18 Mar 2004 15:03:58 +0000
Subject: Re: the '&' character and PHP...?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-180827@lists.php.net to get a copy of this message
Tristan.Pretty@risk.sungard.com wrote:
I've a script that uses '&' However, if I pass that as a variable to another page, everything after it, gets ignored... I've tried: 1. Esacping the character with '\' 2. Using & But nothing works... Any ideas how to include an '&' in my variable? Tris... Are you trying to pass a variable to another page by making it part of the urls query string? In other words you using php code similar to :
echo "http://www.sungard.com/index.php?var=$var" now you are having trouble because $var contains the & character? if so you need to call urlencode($var) please be more detailed in future posts. thanx -- Raditha Dissanayake. --------------------------------------------------------------- http://www.radinks.com/upload/ Drag and Drop Upload thousands of files and folders in a single transfer. (HTTP or FTP)

« previous php.general (#180827) next »