You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
die("The user you are trying to contact don't exist. Please go back and try again.<br>
<form name=\"back\" action=\"newmessage.php\"
method=\"post\">
<input type=\"submit\" value=\"Try Again\">
</form>
");
}
elseif(strlen($content) < 1){
die("Your can't send an empty message!<br>
<form name=\"back\" action=\"newmessage.php\"
method=\"post\">
<input type=\"submit\" value=\"Try Again\">
</form>
");
}
elseif(strlen($title) < 1){
die("You must have a title!<br>
<form name=\"back\" action=\"newmessage.php\"
method=\"post\">
<input type=\"submit\" value=\"Try Again\">
</form>
");
} else {
mysql_query("INSERT INTO messages (from_user, to_user, message_title, message_contents, action) VALUES ('$from','$to','$title','$content', '$time')") OR die("Could not send the message: <br>".mysql_error());