RE: [PHP] inserting <img> tag into a script
| From: | ranman at ranman dot nbtel dot net | Date: | Wed, 06 Dec 2000 17:00:17 +0000 |
| Subject: | RE: [PHP] inserting <img> tag into a script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28943@lists.php.net to get a copy of this message | ||
print("<img src=\"../graphics/logo.jpg\">"); <--- Lame
Try:
?><img src="../graphics/logo.jpg"><?
or if you insist on parsing plain HTML:
print '<img src="../graphics/logo.jpg">';
On Wed, 6 Dec 2000, Brian Paulson wrote:
> Brian,
>
> you can do this many ways .
>
>
> 1.
>
> print("<img src=\"../graphics/logo.jpg\">");
>
> print("<img src=../graphics/logo.jpg>");
>
> or
>
> ?>
>
> <img src="../graphics/logo.jpg">
>
> <?
>
> Hope this helps
>
>
> Thank You
> Brian Paulson
> Sr. Web Developer
> http://www.chieftain.com
> bpaulson@chieftain.com
> 1-800-279-6397
>
>
>
>
> -----Original Message-----
> From: BrianSander [mailto:yoda@ipo.vpaa.asu.edu]
> Sent: Wednesday, December 06, 2000 9:37 AM
> To: php-general@lists.php.net
> Subject: [PHP] inserting <img> tag into a script
>
>
> Greetings,
>
> Got a slight html tag problem with a php4 script. I've written a function
> which forms a generic page for my web page. What I attempted to do was
> insert an image into the page. The problem line is:
>
> print("<img src="../graphics/logo.jpg">");
>
> The above line is slightly abbreviated but that line produces an error
> when the script is executed. It works fine if it's not in a php script.
> I've done a quick search of the help files on php.net and was unable to
> find anything.
>
> How do you place the <img> tag into a php script?
>
> Thanks.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>