--- In [email protected], <[EMAIL PROTECTED]> wrote:
>
> ----- Original Message ----- 
> From: "whoisquilty"
> 
> When I insert into my database from a form, there are slashes added before 
> quotes. What do
> I need to do to get rid of this?
> 
> ------------------------------------
> 
> foreach($_POST as $thisitem)
>   {
>   $_POST[$thisitem] = stripslashes($_POST[$thisitem]);
>   }
> 
> or ...
> foreach($_POST as $key=>$value)
>   {
>   $_POST[$key] = stripslashes($value);
>   }
> 
> to make compatable with different server configs ...
> if(get_magic_quotes_gpc())
>   {
>   foreach($_POST as $key=>$value)
>     {
>     $_POST[$key] = stripslashes($value);
>     }
>   }
> 
> same for alternate ...
> if(get_magic_quotes_gpc())
>   {
>   foreach($_POST as $thisitem)
>     {
>     $_POST[$thisitem] = stripslashes($_POST[$thisitem]);
>     }
>   }
> 
> Hope this helps, Robert.
>

Robert - Your solutions all insert the name of the submit button rather than 
pass the form 
data.

I've found that I have access to the ini file. But there is no entry for magic 
quotes. Is this 
the best way to fix the problem? What do I need to add to do this?

Jeremy

Reply via email to