Stripslashes has nothing to do with forward slashes:
Returns a string with backslashes stripped off. (\' becomes ' and so on.) Double backslashes (\) are made into a single backslash ().
You're using it right, because it's the way most people use it. And if anyone who knows PHP figures out you're just checking the referrer, and using stripslashes(), they'll get around it. I.e. using a script to set the referrer header, and using addslashes so taht when stripslashes is run, it becomes code....
Anyway, what is it that you put in to the form, and how does it come out? Give some examples. The code you posted should work. We need to see results and inputs now.
~Brett
EDIT:
Another option is, this:
It seems that magic_quotes_gpc is set to on. While that may be true, you can do this as well:
<?php
// Is magic_quotes_gpc set to on or off?
$mqgpc = (get_magic_quotes_gpc()==1)?'On':'Off';
$name = ($mqgpc == 'On')? // If variable value is "On"
stripslashes($_POST['name']): // use stripslashes()
$_POST['name']; // else it doesn't have slashes
$message = ($mqgpc == 'On')?
stripslashes($_POST['message']):
$_POST['message'];
?>
That's an alternative, although won't solve your problems....
~Brett