RE: [PHP] using variables

From: Date: Mon, 17 Dec 2001 01:10:43 +0000
Subject: RE: [PHP] using variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-77890@lists.php.net to get a copy of this message
David, Your code should read: <html> <body> <img src="<? echo($ulo); ?>"> </body> </html> -----Original Message----- From: David Killingsworth [mailto:thekillermach@yahoo.com] Sent: Sunday, December 16, 2001 2:39 AM To: php-general@lists.php.net Subject: [PHP] using variables I'm trying to determing why this won't work. I wish to assign graphics to variables then call them within the HTML on my .php pages. ------test.php---------- <? $ulo = "/images/ulo.gif"; ?> <html> <body> <img src="<?$ulo?>"> </body> </html> -------end test.php--------- The resulting output viewing the html source from the browser is: ----html output---------- <html> <body> <img src=""> </body> </html> -------end html output----- there is obviously a programming error here, but after hours of trying things I'm just missing what it is. the <img src> tag should read <img src="/images/ulo.gif"> What am I missing? David. __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- 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 (#77890) next »