BYOC Registration is OPEN.
if (isset ($_POST['submit']))
{
$email = $_POST['email'];
$flag = "false";
mysql_connect("localhost", $user, $pass) or die(mysql_error());
//echo "Connected to MySQL
";
mysql_select_db("mailingList") or die(mysql_error());
//echo "Connected to Database";
$q1 = "SELECT * FROM list";
$q1Result = mysql_query($q1);
while($arrayRow = mysql_fetch_assoc($q1Result))
{
$testEmail = $arrayRow['email'];
if($testEmail == $email)
{
$flag = "true";
}
}
if($flag == "false")
{
//SEND VOTE
mysql_query("INSERT INTO list (email) VALUES ('$email')");
print "You have been added to the list!";
$message = "You have successfully been added to the SELU ACM : SLUGO mailing list.
Remember to check your email frequently for more SLUGO information.
-GAME ON!";
$subject = "SLUGO Mailing List Registration";
mail($email, $subject, $message);
}
else
{
print "You're already on the list!";
}
}
else
{
?>
}
?>
What is SLUGO?
SLUGO is where you want to be! SLUGO is a bi-annual, 24-hour gaming convention, hosted by the SELU ACM. Every semester, gamers look forward to this premiere event. It’s your chance to show your skills in both PC and console tournaments, featuring some of the newest and hottest titles, and some of those timeless favorites.
Come early, stay late, GAME ON!
