snowman15 Posted July 26, 2007 Share Posted July 26, 2007 Hey I have the code: <img src="<?php echo $picture ?>" width="100" height="35" alt=""> I'm trying to use a php string inside of an html image script. any help? Link to comment https://forums.phpfreaks.com/topic/61945-solved-using-php-in-an-html-script-quick-question/ Share on other sites More sharing options...
DeepakJ Posted July 26, 2007 Share Posted July 26, 2007 You can if you have php installed and if you define $picture. Link to comment https://forums.phpfreaks.com/topic/61945-solved-using-php-in-an-html-script-quick-question/#findComment-308443 Share on other sites More sharing options...
snowman15 Posted July 27, 2007 Author Share Posted July 27, 2007 picture is defined as the url of the image. I'm uploading it to a php enabled web server and it still doesnt work. is that the right syntax? its not working Link to comment https://forums.phpfreaks.com/topic/61945-solved-using-php-in-an-html-script-quick-question/#findComment-308579 Share on other sites More sharing options...
Crew-Portal Posted July 27, 2007 Share Posted July 27, 2007 I Guess I have to be the master! PLEASE REMEBER TO CLOSE YOUR TAGS So The Script Should Look Like This <img src="<?php echo $picture; ?>" width="100" height="35" alt=""> That shoud do it! Case Closed also remeber to put this in a php file something like test1.php Link to comment https://forums.phpfreaks.com/topic/61945-solved-using-php-in-an-html-script-quick-question/#findComment-308599 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.