using variables

From: Date: Sun, 16 Dec 2001 07:39:26 +0000
Subject: using variables
Groups: php.general 
Request: Send a blank email to php-general+get-77857@lists.php.net to get a copy of this message
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

« previous php.general (#77857) next »