"; } } // if all required fields OK if ($_SESSION[fieldErrors] == "" ) { // check for valid registration number if (!isValidRegistrationNumber($_SESSION[RegistrationNumber])) { $_SESSION[errors] = "Invalid registration number. Please reenter."; } else if (!isValidEmail($_SESSION[email])) { $_SESSION[errors] = "Invalid email address. Please reenter."; } else { // everything is good at this point // send html email with user info $Message = "Send a Music Ace 2 CD to:

"; foreach($allfields as $field) { $Message .= $_SESSION[$field] . "
"; } $Message .= "

#####"; $Message .= 'date=^' . date('m/d/y') . '^,'; $Message .= 'time=^' . date('H:i:s') . '^,'; $Message .= 'firstname=^' . $_SESSION[FirstName] . '^,'; $Message .= 'lastname=^' . $_SESSION[LastName] . '^,'; $Message .= 'address=^' . $_SESSION[Address] . '^,'; $Message .= 'city=^' . $_SESSION[City] . '^,'; $Message .= 'state=^' . $_SESSION[State] . '^,'; $Message .= 'zip=^' . $_SESSION[PostalCode] . '^,'; $Message .= 'country=^' . $_SESSION[Country] . '^,'; $Message .= 'email=^' . $_SESSION[email] . '^,'; $Message .= 'regnum1=^' . $_SESSION[RegistrationNumber] . '^,'; $Message .= 'code=^RB - Bad Reg. Number^,'; $Message .= 'desc=^K12 MA2 PROBLEM^,'; $Message .= 'product1=^Music Ace 2^,'; $Message .= 'edition1=^Consumer^,'; $Message .= 'version1=^v3.1.3^'; $Message .= "#####

"; $To = "support@harmonicvision.com"; $Subject = "K12 REPLACEMENT CD"; $mailheaders = "MIME-version: 1.0\r\n"; $mailheaders .= "Content-type: text/html; charset=ISO-8859-1\r\n"; $mailheaders .= "From: $_SESSION[email]\n"; $mailheaders .= "Reply-To: $_SESSION[email]"; //send the mail mail($To, $Subject, $Message, $mailheaders); // create an entry in the log file $_SESSION[date] = date('m/d/y H:i:s'); $logfile = "../../log/K12.txt"; $fp = fopen($logfile, "a"); fwrite($fp, $_SESSION[date] . " "); foreach($allfields as $field) { fwrite($fp, $field . '="' . $_SESSION[$field] . '" '); } fwrite($fp, "\r\n"); fclose($fp); // display success page header("Location: K12formFinish.php"); $_SESSION[errors] = ""; exit; } } } else { // first time through - Submit button not pressed /* $_SESSION[errors] = ""; $_SESSION[fieldErrors] = ""; $_SESSION[FirstName] = "FIRST"; $_SESSION[LastName] = "LAST"; $_SESSION[Address] = "ADDRESS"; $_SESSION[City] = "CITY"; $_SESSION[State] = "IL"; $_SESSION[PostalCode] = "ZIP"; $_SESSION[Country] = "United States"; $_SESSION[email] = "me@me.slow.fast.com"; $_SESSION[RegistrationNumber] = "2 C 1 ABC DEF GHI 005"; */ } ?> Request K12 Music Ace 2 Replacement CD-ROM

A small number of Music Ace 2 CDs were produced that will not accept the registration number provided with the CD. These CDs all have registration numbers that begin with '2C1...' and end with '...005' as in '2C1 ABC DEF GHI 005'. If you have received one of these CDs please fill out the form below and we will ship you a replacement CD ASAP.


Please fill in the fields in the form below and then click the "Submit" button
* Required fieldThis information will not be shared with third-parties.

The following required fields are missing or invalid - please correct the fields and Submit again
' . $_SESSION[fieldErrors] . '

'; } else { if ($_SESSION[errors] != "") echo '

' .$_SESSION[errors] . '

'; } ?>
First Name *Last Name *
Mailing address* City*
State/Province* Zip/Post Code*Country or region*
   
Email Address *
Music Ace 2 Registration number *