On Mon, 2 Jun 2003 17:07:17 +0200, Ferhat BINGOL wrote: >I wan to do something like that, I saw some sites do but how? >I wanto code in HTML like that ><img src=http://www.myserver.com/image.php?id=12321> >so it will go and that the image like the id and display it in html..
Are you intending to create an image with the php, redirect to an existing image or simply create a link in the HTML to an existing image? If you intend to create an image (which the code above appears to suggest) you might want to check out the info on the image functions (http://us4.php.net/manual/en/ref.image.php). If you intend to do a redirect to an existing image, you might be able to simply return the following (untested, but I think it should work - at least with reasonably new browsers): <?php header("Location: http://www.myserver.com/image/" . $_GET["id"] . ".gif"); exit; ?> Of course you could also generate the "<image...>" tag via php. Then instead of: <img src=http://www.myserver.com/image.php?id=12321> you would have.... <?php $image = 12321; echo '<img src="http://www.myserver.com/' . $image . '.gif">'; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php