> -----Original Message-----
> From: Gerard L Petersen [mailto:[EMAIL PROTECTED]
> Sent: 05 August 2003 14:56
> 
> My code looks like this.
> 
> <?PHP
> $test = "gerard's name is \"gerard\"";
> echo $test."<br>";
> echo '<input type="text" name="test2" value="'.$test.'"><br>';

echo '<input type="text" name="test2" value="'.htmlentities($test).'"><br>';

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

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

Reply via email to