RE: [PHP] wierd slash

From: Date: Sun, 21 Jan 2007 10:13:55 +0000
Subject: RE: [PHP] wierd slash
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-247490@lists.php.net to get a copy of this message
magic_quotes_gpc On On magic_quotes_runtime Off Off magic_quotes_sybase Off Off but I know if I can change that is there some other way to fix this problem? Don # don.rzeszut@gmail.com / 2007-01-20 21:50:48 -0700: > I have a line of code that validates form info for some POST vars, but not > others. > > if (!ereg("^[A-Za-z' -]{1,50}$",$_POST[$field]) ) > > when I put O'Toole in the form to test, my script kicks the page back (I > thought this entry would be OK) > > but moreover, when it redisplays the form and populates the new form with > the entries previously entered, O'Toole becomes O\ magic_quotes_gpc? -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991

« previous php.general (#247490) next »