RE: [PHP] Wrighting to $_POST array

2009-10-12 Thread Andrea Giammarchi
> But, first, you need to use get_magic_quotes_gpc() to see if magic_quotes_gpc > is > turned on. If so, you need to run stripslashes() on your variables before you > run the mysql_real_escape_string() on them. > > > if ( get_magic_quotes_gpc() ) { > $_POST = array_map('stripslashes', $_P

Re: [PHP] Wrighting to $_POST array

2009-10-12 Thread Jim Lucas
Jay Ess wrote: > hessi...@hessiess.com wrote: >> I have some code which will loop over the whole $_POST array, runs it >> through mysql_real_escape_string and then writes it all back to the array >> again, which seams to work. Are there any incompatibility problems or >> such >> like with writing i

Re: [PHP] Wrighting to $_POST array

2009-10-12 Thread Jay Ess
hessi...@hessiess.com wrote: I have some code which will loop over the whole $_POST array, runs it through mysql_real_escape_string and then writes it all back to the array again, which seams to work. Are there any incompatibility problems or such like with writing into the $_POST or $_GET array?