----- 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.