[PHP] HOWTO USE : htmlspecialchars

2002-01-07 Thread louie miranda

form action=form.php method=GET
Info: input type=text name=info size=25 maxlength=25 value=?php
htmlspecialchars($info); ?
input type=submit
/form


Hi, im trying this form w/ htmlspecialchars (php function), but it doesn't
seem
to work, when i submit the form.. htmlspecialchars($info); is included on
the source
ex: ? HTMLSpecialChars($info); ?

Hm, am i correct?

thanks!!


louie


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] HOWTO USE : htmlspecialchars

2002-01-07 Thread Jimmy

Hi louie,


 ?php htmlspecialchars($info); ?

htmlspecialchars() do not change the passed variable.
it will _return_ the result.
so you have to do like this:
$info = htmlspecialchars($info);

please read the manual before asking to the list.
it's clearly stated there, and there's even an example
on how to use this function.

--
Jimmy

Leave loved ones with loving words, it may be the last time you see them



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]