zack1475 Posted April 2, 2011 Share Posted April 2, 2011 Hello, i have this code $_SESSION["str_system_message"] = "Welcome to your account" ; i want to replace '' Welcome to your account '' wich appears as text by an image ! Anyone got a suggestion for me how to do it ? Quote Link to comment https://forums.phpfreaks.com/topic/232501-help-changing-text-for-image/ Share on other sites More sharing options...
cssfreakie Posted April 2, 2011 Share Posted April 2, 2011 This is more php question if you ask me, but since it involves a tiny bit of html here you are. pro tip: google.com is recently released and it seems to be able to find what you search for.http://tinyurl.com/2e4pcbp <?php session_start(); $_SESSION['str_system_message'] = '<img src="http://www.macgeekblog.com/wp-content/uploads/2008/04/bart.gif" alt="" />'; if (isset($_SESSION['str_system_message'])){ echo $_SESSION['str_system_message']; } ?> Tried it out it works out of the box good luck with it Quote Link to comment https://forums.phpfreaks.com/topic/232501-help-changing-text-for-image/#findComment-1195904 Share on other sites More sharing options...
zack1475 Posted April 2, 2011 Author Share Posted April 2, 2011 Thank you... it worked. Quote Link to comment https://forums.phpfreaks.com/topic/232501-help-changing-text-for-image/#findComment-1195927 Share on other sites More sharing options...
cssfreakie Posted April 2, 2011 Share Posted April 2, 2011 Thank you... it worked. Cheers! Quote Link to comment https://forums.phpfreaks.com/topic/232501-help-changing-text-for-image/#findComment-1195933 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.