problem with composing URL with GET Variables

From: Date: Wed, 23 May 2007 06:39:26 +0000
Subject: problem with composing URL with GET Variables
Groups: php.general 
Request: Send a blank email to php-general+get-255367@lists.php.net to get a copy of this message
Dear all. I have a script that is called by an AJAX popup. Now I use an image file to get the path of an image for an <img> tag eg: <img border="0" id="middleImage" name="middleImage" src="<? echo
$getImageURL; ?>" >       
the $getImageURL is composed as follows: $getImageURL = "getImage.php?imageid=". $imageID."&height=275&width=375&quality=65"; However when I look at the URL that gets sent its as follows: getImage.php?imageid=10&amp;height=275&amp;width=375&amp;quality=65 Which is obviously incorrect. So I tried: $getImageURL = html_entity_decode("getImage.php?imageid=". $imageID."&height=275&width=375&quality=65"); But that doesn't seem to be working. . . As the html_entity_decode should the &amp sign to the & sign? Am I going in the right direction or can anyone else let me know if there is something I am missing or should be doing? Thanks in advance. -- ------------------------------------------------------------------------ Angelo Zanetti Systems developer ------------------------------------------------------------------------ *Telephone:* +27 (021) 469 1052 *Mobile:* +27 (0) 72 441 3355 *Fax:* +27 (0) 86 681 5885 * Web:* http://www.zlogic.co.za *E-Mail:* angelo@zlogic.co.za <mailto:angelo@zlogic.co.za>

« previous php.general (#255367) next »