SMS/Text Messenger
)(.*)$", $subject)) { $error = "The subject of the message cannot contain HTML characters (such as > or <)."; // Check that the message doesn't contain HTML characters } elseif (eregi("^(.*)(<|>)(.*)$", $message)) { $error = "The message cannot contain HTML characters (such as > or <)."; // Check that the subject is between 3 and 20 characters } elseif ((strlen($subject) < "3") || (strlen($subject) > "20")) { $error = "The subject must be between 3 and 20 characters in length."; // Check that the message is between 3 and 120 characters } elseif ((strlen($message) < "3") || (strlen($message) > "120")) { $error = "The message must be between 3 and 120 characters in length."; // Send the message } else { // Where are we sending it? $to = "" . $number . "@teleflip.com"; // Send the text message (via Teleflip's service) if (@mail($to, $subject, $message, "From: $from")) { // Give a success notice echo "Text message sent."; echo "\n"; echo "