"; } } // check for valid reg. number $reg = str_replace(" ","", $_SESSION[regnumber]); $reg = strtoupper($reg); if (!preg_match("/^8C1[A-Z]{9}V?010$/", $reg)) { $_SESSION[errors] .= ' - registration number "' . $reg . '" is not valid
'; } // if all fields OK if ($_SESSION[errors] == "") { // create an entry in the log file $_SESSION[date] = date('m/d/y H:i:s'); $logfile = "../../log/HSGuideDownloads.txt"; $fp = fopen($logfile, "a"); foreach($allfields as $field) { fwrite($fp, $field . '="' . $_SESSION[$field] . '" '); } fwrite($fp, "\r\n"); fclose($fp); // display success page header("Location: HSGuideFinish.htm"); exit; } } else // first time through - Submit button not pressed { $_SESSION[errors] = ""; //$_SESSION[state] = ""; $_SESSION[country] = "United States"; } ?> Download Music Ace Deluxe Instructional Guide
Download Music Ace Deluxe Instructional Guide

To download a copy of the Instructional Guide, please complete this form and click "Submit"

* Required field  
"") { echo '
Required fields are missing or invalid- please correct the fields and Submit again
' . $_SESSION[errors] . '
'; } ?>
First Name*Last Name*
Street Address*City*
State/Province*Zip/Postal Code*Country*
E-mail Address*Music Ace Deluxe Registration number*
Will this product be used as part of a formal home school education program? yes
Number of students using the product
Where did you purchase this product?