mgrunk
02-23-2005, 08:00 AM
I am writing a php screen to update a database. One of the elements in the record is htmlcode - I use a form to bring the record back for the user to update and bring that specific element back into a form element: textarea.
For one affiliate, the textarea simply shows the text of the html link:
<table border=\"0\" width=\"600\" cellpadding=\"5\" cellspacing=\"0\">
<tr>
<td valign=\"top\" width=\"10%\"><img src=\"http://xxxxxxx/images/products/cbmg.gif\" border=\"0\" alt=\"xxxxxx(coloring book)\"></td>
<td valign=\"top\" >
<p><b><font size=\"4\">xxxxxxx (coloring book)</font></b></p>
<p><font size=\"2\">xxxxxxx</font></p>
<hr>
<input type=\"hidden\" name=\"pid\" value=\"xxxxx\">
<input type=\"hidden\" name=\"aid\" value=\"xxxxx\">
<input type=\"hidden\" name=\"url\" value=\"http://www.xxxxx/ViewProduct.aspx?SID=1&Product_ID=xxxxx\">
<input type=\"submit\" value=\"Buy\">
</td>
</tr>
</table>
</form>\">">
But for the Amazon link, the textarea box only dislays:
</iframe>">
Rather than:
<iframe src="http://rcm.amazon.com/e/cm?t=xxxxcrossin-20&o=1&p=8&l=as1&asins=xxxxxxx&fc1=000000&=1&lc1=0000ff&bc1=000000<1=_blank&IS2=1&f=ifr&bg1=ffffff&f=ifr"
width="120"
height="240"
scrolling="no"
marginwidth="0"
marginheight="0"
frameborder="0">
</iframe>
This is the code in the screen:
<textarea name="htmlcode" rows="5" cols="40" value "<?=$htmlcode?>"></textarea>
For one affiliate, the textarea simply shows the text of the html link:
<table border=\"0\" width=\"600\" cellpadding=\"5\" cellspacing=\"0\">
<tr>
<td valign=\"top\" width=\"10%\"><img src=\"http://xxxxxxx/images/products/cbmg.gif\" border=\"0\" alt=\"xxxxxx(coloring book)\"></td>
<td valign=\"top\" >
<p><b><font size=\"4\">xxxxxxx (coloring book)</font></b></p>
<p><font size=\"2\">xxxxxxx</font></p>
<hr>
<input type=\"hidden\" name=\"pid\" value=\"xxxxx\">
<input type=\"hidden\" name=\"aid\" value=\"xxxxx\">
<input type=\"hidden\" name=\"url\" value=\"http://www.xxxxx/ViewProduct.aspx?SID=1&Product_ID=xxxxx\">
<input type=\"submit\" value=\"Buy\">
</td>
</tr>
</table>
</form>\">">
But for the Amazon link, the textarea box only dislays:
</iframe>">
Rather than:
<iframe src="http://rcm.amazon.com/e/cm?t=xxxxcrossin-20&o=1&p=8&l=as1&asins=xxxxxxx&fc1=000000&=1&lc1=0000ff&bc1=000000<1=_blank&IS2=1&f=ifr&bg1=ffffff&f=ifr"
width="120"
height="240"
scrolling="no"
marginwidth="0"
marginheight="0"
frameborder="0">
</iframe>
This is the code in the screen:
<textarea name="htmlcode" rows="5" cols="40" value "<?=$htmlcode?>"></textarea>