al3x8730 Posted September 2, 2008 Share Posted September 2, 2008 Some reason I can't get something to work. It's pretty simple, but I just can't think... I'm trying to make an image auto general based on what was entered, the whole auto generation is already setup. To show the image on a specific page I was using this: echo "<img src=\"http://game.endless-online.com/eosig/style1.php?user=".$username."\"</img>"; That all works fine. But what would I do to add the alt=" " to $username I know how to do it, I was just getting confused in all the syntax. Link to comment https://forums.phpfreaks.com/topic/122430-auto-generation-image-simple-syntax/ Share on other sites More sharing options...
tibberous Posted September 2, 2008 Share Posted September 2, 2008 str_replace("img", "img alt='$username' ", $var); Link to comment https://forums.phpfreaks.com/topic/122430-auto-generation-image-simple-syntax/#findComment-632153 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.