David, Your code should read:
<html> <body> <img src="<? echo($ulo); ?>"> </body> </html> -----Original Message----- From: David Killingsworth [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 16, 2001 2:39 AM To: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]