Quote:
Originally posted by SDP2006
You haven't declared or set $text to anything! Essentialy, $text is nowhere to be found!
|
you can assume that $text is set somewhere else.
what you cant do however, is test for if stripslashes($text) is set, because even if $text isnt set, stripslashes($text) will still return an empty string (a set value)
PHP Code:
$text = stripslashes($text);
if (isset ($text)){
mail("x@x.net", "", "$text");
echo $text.'<br/> been mailed!';
}else{
print 'xxxx happens';
}
hope this helps you out