In order to add your car to the registry please take the time to fill out at least the required fields. Your information will be stored into a database and only select information will be displayed on the website.
‘);
ttttttttttttttttprint(‘
Owners and researchers can request the information from the registry but your private information will not be given out publicly.
‘);
ttttttttttttttttprint(‘
‘);
ttttttttttttttttprint(‘
Click Start below to begin the registration process.
‘);
ttttttttttttttttprint(‘
“); print(‘Start
‘);
ttttttttttttttttprint(“”);
ttttttttttttttt}
ttttttttt// Stage 3
tttttttttelse {print(‘Blank Stage’);}
ttttttt// Stage 2
tttttttelse {
ttttttttt$Year = $_POST[‘Year’];
ttttttttt$Model = $_POST[‘Model’];
ttttttttt$Serial = $_POST[‘Serial’];
ttttttttt$Color = $_POST[‘Color’];
ttttttttt$Comments = $_POST[‘Comments’];
ttttttttt$FirstName = $_POST[‘FirstName’];
ttttttttt$LastName = $_POST[‘LastName’];
ttttttttt$Street = $_POST[‘Street’];
ttttttttt$City = $_POST[‘City’];
ttttttttt$State = $_POST[‘State’];
ttttttttt$ZIP = $_POST[‘ZIP’];
ttttttttt$Country = $_POST[‘Country’];
ttttttttt$Phone = $_POST[‘Phone’];
ttttttttt$Email = $_POST[‘Email’];
ttttttttt$Website = $_POST[‘Website’];
ttttttttt$Date = strftime(“%c”);
ttttttttt
ttttttttt// Validation
ttttttttt$errors = array();
tttttttttif (!$_POST[‘Serial’])
tttttttttt$errors[] = “Serial number is required”;
tttttttttif (!$_POST[‘FirstName’])
tttttttttt$errors[] = “First name is required”;
tttttttttif (!$_POST[‘LastName’])
tttttttttt $errors[] = “Last name is required”;
tttttttttif (!$_POST[‘Country’])
tttttttttt$errors[] = “Country is required”;
tttttttttif (!$_POST[‘Year’])
tttttttttt$errors[] = “Year is required”;
tttttttttif (!$_POST[‘Model’])
tttttttttt$errors[] = “Model is required”;
tttttttttif (!$_POST[‘Color’])
tttttttttt$errors[] = “Color is required”;
tttttttttt
tttttttttprint(‘
‘);
tttttttttif (count($errors)>0) {
tttttttttttecho “ERROR:
“;
tttttttttttforeach($errors as $err)
tttttttttttecho “$err
“;
ttttttttttt$href = “/submit-to-the-registry/” . “&Stage=1”;
tttttttttttprint(‘
‘); print(‘
‘);
tttttttttt}
tttttttttelse {
ttttttttt
ttttttttttt$formsent = mail(‘smyers@mac.com’,
ttttttttttttttt’Innocenti Registry Addition’,
ttttttttttttttt”Request from: $Email\
Year: $Year\
Model: $Model\
Serial: $Serial\
Color: $Color\
Comments: $Comments\
FirstName: $FirstName\
LastName: $LastName\
Street: $Street\
City: $City\
State: $State\
ZIP: $ZIP\
Country: $Country\
Phone: $Phone\
Email: $Email\
Website: $Website”,
ttttttttttttttt”From: donotreply@innocentispyder.com”);
tttttttttttif ($formsent)
ttttttttttttecho “The registration has been sent.”;
ttt
tttttttttt}
tttttttt}
tttttt// Stage 1
ttttttelse {print(‘
‘);}
?>