Try this:

<?php
$test='sth="sth"';
$test=htmlentities ($test, ENT_QUOTES);
echo "<input type=textarea value=\"$test\">";
?>

"Matt Zur" <[EMAIL PROTECTED]> píse v diskusním príspevku
news:[EMAIL PROTECTED]
> Does anyone know of a simple program that will let me specify a file
> within a certain directory to load into a textarea field, let me make
> changes, then export/replace that file with the changed contents?
>
> I tried writing one myself in PHP, but I ran into a problem with quotes.
> If I had tags in in the text area e.g. <table width="500">  it would
> mess up the quotes by adding back slashes etc.
>
> TIA,
>
> -Matt
> --
> Matt Zur
> [EMAIL PROTECTED]
> http://www.zurnet.com
>
> Need a Web Site??? - Visit... www.zurnet.com
>
> 1997 - 2003 - 6th Anniversary!!!
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to