index.php - Code (Text): <form action='send.php' method='post'> Phone number (No slashes. Ex. 5555555555): <input type='text' name='number'><br> Message: <br /><textarea name='body'></textarea><br> Times to send: <br /><input type='text' name='times'><br> Cell Phone Company:<br> <select name="company"> <option value="alltel">Alltel</option> <option value="att">AT&T</option> <option value="boost">Boost Mobile</option> <option value="tmobile">T-Mobile</option> <option value="verizon">Verizon</option> <option value="virgin">Virgin Mobile USA</option> <option value="sprint">Sprint</option> <option value="nextel">Nextel</option> <option value="unicel">Unicel</option> </select><br> <input type='submit' value='Send text'> </form> send.php - Code (Text): <?php $number = $_POST["number"]; $message = $_POST["body"]; $company = $_POST["company"]; $sendamount = $_POST["times"]; function sendtext($sendto, $sendmessage, $amount) { $current = 0; while ( $current < $amount ) { mail($sendto, " ", $sendmessage, " "); $current = $current + 1; echo "Sent message (" . $current . ")<br>"; } } if ($company == "alltel") { $to = $number . "@message.alltel.com"; sendtext($to, $message, $sendamount); echo "Done"; } elseif($company == "att") { $to = $number . "@txt.att.net"; sendtext($to, $message, $sendamount); echo "Done"; } elseif($company == "boost") { $to = $number . "@myboostmobile.com"; sendtext($to, $message, $sendamount); echo "Done"; } elseif($company == "tmobile") { $to = $number . "@tmomail.net"; sendtext($to, $message, $sendamount); echo "Done"; } elseif($company == "verizon") { $to = $number . "@vtext.com"; sendtext($to, $message, $sendamount); echo "Done"; } elseif($company == "virgin") { $to = $number . "@vmobl.com"; sendtext($to, $message, $sendamount); echo "Done"; } elseif($company == "unicel") { $to = $number . "@utext.com"; sendtext($to, $message, $sendamount); echo "Done"; } elseif($company == "sprint") { $to = $number . "@messaging.sprintpcs.com"; sendtext($to, $message, $sendamount); echo "Done"; } elseif($company == "nextel") { $to = $number . "@page.nextel.com"; sendtext($to, $message, $sendamount); echo "Done"; } else { echo "Error"; } ?>