Re: htmlspecialchars

From: Date: Thu, 28 Sep 2000 05:18:20 +0000
Subject: Re: htmlspecialchars
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17861@lists.php.net to get a copy of this message
Are you using php 4.0.2? I believe the second argument was added recently. Charles ----- Original Message ----- Sent: Wednesday, September 27, 2000 10:13 PM Subject: [PHP] htmlspecialchars Hey, I can't seem to get the htmlspecialchars() fuction to work, I am passing a name from a form field ( Name ) that may contain special characters like the name O'Conner etc.. I have read the manual and as far as I can tell this should work? $Name = htmlspecialchars($Name, ENT_QUOTES); this is the error output: Warning: Wrong parameter count for htmlspecialchars() in... strange I see 2 params in the above fuction call and this fuction only takes upto 2 params??? $Name most definatly contains a valid string hmm... Any ideas people? Regards, Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#17861) next »