Re: wierd slash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Don wrote:
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@xxxxxxxxx / 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?

stripslashes() ?

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux