tego10122 Posted July 3, 2006 Share Posted July 3, 2006 Hello , I have a image upload site www.vobgaming.com if you go there and upload a file it will give you a myspace code it comes out like so. <a href='http://littlepic.zapto.org'><img src='http://vobgaming.com/images_dir/picname.jpg'></a> what i need to do is have the php echo ' as ". The code is below. <tr><td><b><img src="images_0/1794icon_friends.gif"> MySpace Code:</b><td><input type="text" name="thetext" size="70" value = "<a href='<? echo $hosturl; ?>'><img src='<?echo $urlf; ?>'></a>"</td></tr>that echos <a href='http://littlepic.zapto.org'><img src='http://vobgaming.com/images_dir/picname.jpg'></a>I need to replace ' with " with out getting an erorr.Thanks in advanced! Link to comment https://forums.phpfreaks.com/topic/13566-php-html-code-echo-erorr/ Share on other sites More sharing options...
micah1701 Posted July 3, 2006 Share Posted July 3, 2006 This is what I have for the exact same application.you want to use HTML chars, like > = > " = "[code] <table border="0" cellspacing="0" cellpadding="0"> <tr> <td>HTML Code: </td> <td><input name="textfield" type="text" size="30" value="<img src="http://www.mysite.com/photos/<? echo $row['imageLocation'] ?>">" onClick="this.focus(); this.select()" title="display image on sites like myspace or ebay"></td> </tr> <tr> <td>Forum Code: </td> <td><input name="textfield2" type="text" size="30" value="[IMG]http://www.mysite.com/photos/<? echo $row['imageLocation'] ?>[/IMG]" onClick="this.focus(); this.select()" title="display image in a forum using BBcode"></td> </tr> <tr> <td>HTML Link: </td> <td><input name="textfield3" type="text" size="30" value="<a href="http://www.mysite.com/photos/<? echo $row['imageLocation'] ?>">Click Here To View Image</a>" onClick="this.focus(); this.select()" title="create an HTML hyperlink to the image for sites like myspace or ebay"></td> </tr> </table>[/code]this lets you click on the text field to auto highlight the code snippet too. kind of like photobucket Link to comment https://forums.phpfreaks.com/topic/13566-php-html-code-echo-erorr/#findComment-52537 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.