Forum Moderators: coopster

Message Too Old, No Replies

Removing slashes in form and login system

         

john_m

12:02 pm on May 13, 2005 (gmt 0)

10+ Year Member



I've created a contact form on my site, but if the user types the ' character in the post, in the email message it turns up as \'. Is there any way to get rid of them?

Also, I am in search of a login system which can have a number of categories- and for one category (e.g. public access) users can register using an automated form and for some categories the admin manually adds users (for private material). Does anyone know a login system that can do this?

Thanks!

dreamcatcher

12:25 pm on May 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To remove the slashes use the stripslashes function.

if (get_magic_quotes_gpc())
{
$message = stripslashes($message);
}

echo $message;