E-Mail Address  
First Name  
Last Name  
City  
State  
Zip Code  
Gender  
Birth Date    
MySpace Profile URL  
Facebook Profile URL  
Twitter Username  
I Added  

* Signing up will also add you to the E-Mail List
Contest closes


 

The E-mail Address you entered is not valid.
"; } if(strlen($firstname)<1){ $error .= "
  • Your First Name is required.
    "; } if(strlen($lastname)<1){ $error .= "
  • Your First Name is required.
    "; } if(strlen($city)<1){ $error .= "
  • Your City is required.
    "; } if(strlen($state)<1){ $error .= "
  • Your State is required.
    "; } if(strlen($zipcode)<4){ $error .= "
  • Your Zip Code is required.
    "; } if(strlen($birthmonth)<1 || strlen($birthday)<1 || strlen($birthyear)<1){ $error .= "
  • Your full Birthdate is required.
    "; } if(strlen($gender)<1){ $error .= "
  • Your Gender is required.
    "; } if( strlen($myspace)<8 && strlen($facebook)<8 && strlen($twitter)<1 ){ $error .= "
  • Either a Myspace URL, Facebook URL, or Twitter Username is required.
    "; } /* if(strlen($myspace)<13){ $error .= "
  • You must provide the URL of your MySpace Profile in order to show that you have completed the required steps.
    "; } */ if(strlen($step)<1){ $error .= "
  • You must indicate which step you completed.
    "; } if(strlen($error)>1){ echo "
    "; echo "Please go back and fix the following errors:
    ".$error; echo "
    "; } else { //echo "Do submit validated info."; $now = date("YmdGm"); $then = $_SESSION['lastentered']; if( ($now - $then > 3) || ($then=="") ){ //echo "User hasn't posted for at least three minutes. Do post"; $_SESSION['lastentered'] = date("YmdGm"); $_SESSION['lastenteredE'] = date("F jS, Y, g:i a"); $thedate = date("Y-m-d"); $ip = $_SERVER['REMOTE_ADDR']; $addLog = "$thedate,$email,$firstname,$lastname,$city,$state,$zipcode,$birthyear-$birthmonth-$birthday,$gender,$myspace,$facebook,$twitter,$step\r\n"; $page = "./contest/contest.csv"; $fp = fopen( $page , "a" ); $fw = fwrite( $fp, $addLog); fclose( $fp ); // SEND CONFIRMATION EMAIL $body = "$firstname $lastname, this is a confirmation that you have entered the $artist \"$album\" Contest. If you are a winner, we will inform you via email after the contest closes on $endDate. Thanks!\n\n"; $subject = "$artist - \"$album\" Contest"; $headers = "From: $fromEmail\r\n"; mail($email, $subject, $body, $headers); echo "
    "; echo "Thanks. You will receive a confirmation of your entry via email at the following address: $email"; echo "
    "; } else { echo "
    "; echo "You already entered this contest on: ".$_SESSION['lastenteredE']; echo "
    "; } } } ?>
  •