SOLVED Re: [PHP] problem with composing URL with GET Variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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&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.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux