bgbs Posted February 19, 2010 Share Posted February 19, 2010 I know this is a simple question, but how do I write output the actual code in php/html page instead of heaving the image show up? <img src="http://site.com/images/premium-member-logo.png" alt="verified seal" width="140" height="49"> What I'm trying to do is have the above image code be written out in html so that people can select and copy from the page. Link to comment https://forums.phpfreaks.com/topic/192583-how-do-i-display-image-code-in-the-php-page/ Share on other sites More sharing options...
sreekuttan Posted February 19, 2010 Share Posted February 19, 2010 <?php echo "<img src=\"http://site.com/images/premium-member-logo.png\" alt=\"verified seal\" width=\"140\" height=\"49\">"; ?> Link to comment https://forums.phpfreaks.com/topic/192583-how-do-i-display-image-code-in-the-php-page/#findComment-1014618 Share on other sites More sharing options...
bgbs Posted February 19, 2010 Author Share Posted February 19, 2010 I guess I confused everybody with my post. I'm not trying to render the actual image in browser, I'm trying to have people view the actual image code in browser so that they can select the code with their mouse, then copy it, and paste it where ever they want. right now it just wants to render the image for me in browser, and I'm trying to avoid that. Link to comment https://forums.phpfreaks.com/topic/192583-how-do-i-display-image-code-in-the-php-page/#findComment-1014627 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.