Jump to content


php html code echo erorr

  • Please log in to reply
1 reply to this topic

#1 tego10122

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 03 July 2006 - 05:07 PM

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">&nbsp;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!

#2 micah1701

  • Members
  • PipPipPip
  • Advanced Member
  • 613 posts
  • LocationEllington, CT USA

Posted 03 July 2006 - 05:25 PM

This is what I have for the exact same application.
you want to use  HTML chars, like 
&gt; = > 
&quot; =  "

     <table border="0" cellspacing="0" cellpadding="0">
	         <td>HTML Code: </td>
	         <td><input name="textfield" type="text" size="30" value="&lt;img src=&quot;http://www.mysite.com/photos/<? echo $row['imageLocation'] ?>&quot;&gt;" onClick="this.focus(); this.select()" title="display image on sites like myspace or ebay"></td>
	         <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>
	         <td>HTML Link: </td>
	         <td><input name="textfield3" type="text" size="30" value="&lt;a href=&quot;http://www.mysite.com/photos/<? echo $row['imageLocation'] ?>&quot;&gt;Click Here To View Image&lt;/a&gt;" onClick="this.focus(); this.select()" title="create an HTML hyperlink to the image for sites like myspace or ebay"></td>

this lets you click on the text field to auto highlight the code snippet too. kind of like photobucket
"Confidence in the face of risk."

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users