| Request a vehicle tag change | ||
| MM/DD/YYYY | ||
| MM/DD/YYYY | ||
| 1 | ||
| parking and transportation, maps, forms, change vehicle tag, change license plate | ||
| If the license plate (tag) for your Georgia Tech registered vehicle changes, or if you have a new vehicle/tag, you must report the change to the parking office (in person or using this form). You can also use this form to register an additional vehicle/tag under your valid parking permit. Vehicles not displaying a valid permit and not having a tag in our database will be considered unregistered. A parking violation may be issued. The person registering the motor vehicle is responsible for all parking violations issued to that vehicle. When you submit this form online, you will receive a copy for your records at the email address you provide. | ||
'',
'last_name' => '',
'email' => '',
// Vehicle Info
'permit' => '',
'make' => '',
'model' => '',
'tag_number' => '',
'tag_state' => '',
'change_type' => 'update'
);
$not_required_array = array(
'change_type'
);
$error_value_array = array(
// Requestor Info
'first_name' => 'Please provide your first name',
'last_name' => 'Please provide your last name',
'email' => array("Please provide an email address", "Please use email format similiar to some.name@some.server.com"),
// Vehicle Info
'permit' => 'Please provide your assigned parking permit number',
'make' => 'What is the make of the vehicle?',
'model' => 'What is the vehicle model?',
'tag_number' => 'What is the new tag number?',
'tag_state' => 'In which state is the tag registered?',
'change_type' => ''
);
//////////////////////////// CHECK FOR POSTED VALUES
if ($_POST) {
// THE FORM HAS BEEN SUBMITTED, CHECK THE VALUES
foreach ($default_value_array as $display => $value) {
// Check the submitted value for each posted item, skipping items that are not required (in array $not_required_array)
$error_msg = '';
switch(true):
/////// ADD SPECIALIZED ERROR CHECKING AS CASE ITEMS HERE ($display = [form_object_name]):
case( $display == 'email' ): // Check the email field for proper formatt username@some.server.com
$error_value = ( $_POST[$display] == $default_value_array[$display] || $_POST[$display] == $error_value_array[$display][0] );
$error_format = ( !preg_match( "/([^\s]+)[@]([^\s]+)/", $_POST[$display] ) || $_POST[$display] == $error_value_array[$display][1] );
$error = ($error_value || $error_format);
// Set the error message
if ($error_value) { $error_msg = $error_value_array[$display][0]; } else if ($error_format) { $error_msg = $error_value_array[$display][1]; }
break;
///////////////////////////////////////////////////////////
default: // All other files without specific error checking, simply check to see if a value is required, and is provided
$error = (
!( in_array($display, $not_required_array) ) && ( ( $_POST[$display] == $default_value_array[$display] ) ||
( $_POST[$display] == $error_value_array[$display] ) )
);
// Set the error message
if ($error) { $error_msg = $error_value_array[$display]; }
break;
endswitch;
if ( $error ) {
// Error Messaging values
$errors_receivedArray[] = $display; // add this item to the error array
$errorMessage[] = "".$error_msg.""; // Add a message for this item in the errorMessage array
// Add visual error cues to this item in the form
$formArray[$display] = array(
'color_label' => $color_bad,
'color_input' => $color_bad,
'current_value' => $error_msg,
'default_value' => $default_value_array[$display]
);
} else {
// No error detected in this form object (Error Level 1 basic)
$formArray[$display] = array(
'color_label' => $color_good_label,
'color_input' => $color_good,
'current_value' => $_POST[$display],
'default_value' => $default_value_array[$display]
);
}
}
} else {
////// FORM HAS NOT BEEN SUBMITTED
extract($default_value_array); // Set items to default values
foreach ($default_value_array as $display => $value) {
$formArray[$display] = array(
'color_label' => $color_good_label,
'color_input' => $color_good,
'current_value' => $default_value_array[$display],
'default_value' => $default_value_array[$display]
);
}
}
//////////////////////////// ERROR MESSAGING
if ($errorMessage) {
$errorTable .= "
\n"; } else { $errorTable = ''; } /////////// DISPLAY THE FORM // Display form if not posted OR posted with errors if ( !$_POST || ($_POST && $errorMessage != '') ) { include_once $serverPath.dirname($thisPath)."/support_files/form_tag_change.php"; } else { //////////////////////////// FORM SUBMITTED AND NO ERRORS DETECTED extract($_POST); // Set items to submitted values // Attempt to mail the form to the recipient $stamp = date( "D F j, Y g:i:s a", time() ); // Date timestamp for the form $from = "From: $email\r\nReply-To: $email\r\nX-Mailer: PHP/".phpversion(); $from_staff = "From: $email\r\nReply-To: $mailto\r\nX-Mailer: PHP/".phpversion(); // Format the change type string switch($change_type): case('update'): $change_type_str = 'Update existing vehicle tag only.'; break; case('replace'): $change_type_str = 'Replace current vehicle and tag with new information.'; break; case('add'): $change_type_str = 'Keep existing vehicle/tag and register this information as an additional vehicle/tag under my permit'; break; endswitch; ///////// THE EMAIL MESSAGE FORMAT //////// $message_format = <<< format Email submitted via $serverName Timestamp: $stamp From: $first_name $last_name Email: $email Permit Number: $permit Vehicle Make: $make Vehicle Model: $model New Tag Number: $tag_number Registered in state: $tag_state Change type: $change_type_str format; ////////////////////////////////////////// $success_submit = mail( $mailto, "REQUEST: CHANGE OF TAG ( $last_name, $first_name )", $message_format, $from ); $success_copy = mail( $email, "REQUEST: CHANGE OF TAG ( $last_name, $first_name, copy for your records )", "The following has been submitted to the Parking Staff. This is only a copy of your request for your records.\n\n".$message_format, $from_staff ); if ($success_submit) { ////////////////// DISPLAY SUCCESS MESSAGE echo " Your message has been successfully submitted via an automated server task\n"; echo "Our staff will attempt to address your message during our normal business hours (listed at the bottom of this page). Thanks for your message! "; } else { echo "We're sorry, there has been an internal server error and your message was NOT submitted."; echo "Please try again at a later time, or contact us via phone during normal business hours (listed at the bottom of this page) "; } } ?> |
||
| ( Absolute Path to a downloadable document that you would like to associate with this page ) | ||
| ( Place a URL value in this field if you want the page to simply forward to a different link. This is useful if you are linking to an external page, but want a link generated in one of this site's dynamic navigation lists. ) | ||
| ( Name of browser window to open the "Forward To" address. This is equivalent to setting the <a target="Forward Target Value"> for the link created for the "Forward To" value above. ) | ||