On Nov 6, 2011, at 6:19 PM, tu...@netzero.net wrote:
> <?php
> 
> echo "<input><?=$variable1?></input>";
> 
This is actually incorrect.  The value needs to go in the the value attribute 
of the input element.  Try this:

echo '<input value="' . htmlspecialchars($variable1, ENT_QUOTES, 'UTF-8') . '" 
/>";
> echo "<textarea><?=$variable2?></textarea>";
> 

Try this:

echo '<textarea>' . htmlspecialchars($variable2, ENT_QUOTES, 'UTF-8') . 
'</textarea>';

_______________________________________________
New York PHP Users Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

http://www.nyphp.org/Show-Participation

Reply via email to