Re: header problem
| From: | Matt McClanahan | Date: | Mon, 09 Oct 2000 05:03:59 +0000 |
| Subject: | Re: header problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19141@lists.php.net to get a copy of this message | ||
On Mon, 9 Oct 2000, Ronaldi Junarto wrote:
> I want to add link with <a href=".."> tag inside a script that create
> image. The script send header("content-type: image/gif") so I can not
> display the link. I try to call the script that create image with
> <IMG SRC=".."> tag, the result show the link but it doesn't display the
> image
>
> Any ideas how to work this out...??
Something like this?
<?php
if ($action == 'draw')
{
// Draw and output image
}
else
{
echo '<a href="destination.php">';
echo '<img src="' . $PHP_SELF . '?action=draw"
border="0">
echo '</a>';
}
?>
Matt