RE: [PHP] inserting <img> tag into a script

From: Date: Wed, 06 Dec 2000 16:47:08 +0000
Subject: RE: [PHP] inserting <img> tag into a script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28932@lists.php.net to get a copy of this message
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

« previous php.general (#28932) next »