Re: htmlspecialchars

From: Date: Thu, 28 Sep 2000 05:23:26 +0000
Subject: Re: htmlspecialchars
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17863@lists.php.net to get a copy of this message
On Thu, 28 Sep 2000, Joseph Blythe wrote: > 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 The online docs say "Also note that the optional second argument was added in PHP 3.0.17 and PHP 4.0.3." Have you upgraded? -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#17863) next »