SOLVED Re: [PHP] problem with composing URL with GET Variables
| From: | Angelo Zanetti | Date: | Wed, 23 May 2007 07:03:25 +0000 |
| Subject: | SOLVED Re: [PHP] problem with composing URL with GET Variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255368@lists.php.net to get a copy of this message | ||
SOLVED..... seems that something else was causing the script not to work.
Thanks anyway
Angelo Zanetti wrote:
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&height=275&width=375&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 & 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.