fromtest(); $this->ratetest(); $result = $this->traptest(); if($result == 3) { $this->sndmsg("you@yoursite.com"); return 3; }else{ return 0; } } } $lcheck = new antibot(); $winner = $lcheck->do_tests(); if ($winner == 3){ echo "Form Submitted thank you!"; }else{ echo "Error: Send failed, please try again."; } ?>