"; } ?>
Make your own Emery video contest!

To Enter:

1) Download Emery's "So Cold I Could See My Breath" here (right click to download song)
2) Make your own video for the song
3) Join the Emery Video Contest group
4) Upload your video to the YouTube group
5) Fill out the entry form below.

Emery and Tooth & Nail Records will choose two winners to award the sponsor provided prizes.
Contest ends November 15th, 2006!

 
First Name *
Last Name *
YouTube Username *
Email Address *
Phone *
City *
State *
Zip Code *
Country *
Birthdate *    
Gender *
Add me to the Emery Mailing List
  * Required Field

 


"; //echo "Do submit"; // VALIDATE REQUIRED FIELDS $error = ""; if(strlen($firstname)<1){ $error .= "
  • Your First Name is required.
    "; } if(strlen($lastname)<1){ $error .= "
  • Your Last Name is required.
    "; } if(strlen($youtubeuser)<1){ $error .= "
  • Your YouTube Username is required.
    "; } if(strlen($birthmonth)<1 || strlen($birthday)<1 || strlen($birthyear)<1){ $error .= "
  • Your full Birthdate is required.
    "; } if ( (!strstr($email,"@")) || (!strstr($email,".")) || (strlen($email)<5) ) { $error .= "
  • The E-mail Address you entered is not valid.
    "; } if(strlen($phone)<1){ $error .= "
  • Your Telephone Number is required.
    "; } if(strlen($city)<1){ $error .= "
  • Your City is required.
    "; } if(strlen($state)<1){ $error .= "
  • Your State / Province is required.
    "; } if(strlen($zipcode)<4){ $error .= "
  • Your Zip Code is required.
    "; } if(strlen($country)<1){ $error .= "
  • Your Country is required.
    "; } if(strlen($gender)<1){ $error .= "
  • Your Gender is required.
    "; } if(strlen($error)>1){ echo "Please go back and fix the following errors:

    ".$error; } 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,$phone,$city,$state,$zipcode,$country,$birthyear-$birthmonth-$birthday,$gender,$youtubeuser,$ip\r\n"; $page = "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 YouTube Video contest. If you are a winner, we will inform you via email after the contest closes on $endDate. Thanks.\n\n"; $subject = "$artist -- YouTube Video Contest"; $headers = "From: $fromEmail\r\n"; mail($email, $subject, $body, $headers); echo "Thanks. You will receive a confirmation of your entry via email at the following address: $email

    "; // Add this user to the mailing list IF they opted IN if($mailinglist=="on"){ $page = "mailinglist.csv"; $fp = fopen( $page , "a" ); $fw = fwrite( $fp, $email.",\n"); fclose( $fp ); } } else { echo "You already entered this contest on: ".$_SESSION['lastenteredE']; } } echo "
  • footer