Surviving Porter or Waiter
[insert_php]
error_reporting(E_ALL);
ini_set(‘display_errors’, True);
[/insert_php]
Pullman Porter National Registry
Please use the form to add to the Pullman Porter National Registry!
Not adding someone? Click here to search the Pullman Porter National Registry.
[insert_php]
global $wpdb;
if(isset($_POST[‘search’]))
{
$relative = $_POST[‘regRelative’];
$firstName = $_POST[‘firstName’];
$lastName = $_POST[‘lastName’];
$address = $_POST[‘address_1’];
$address2 = $_POST[‘address_2’];
$city = $_POST[‘city’];
$state = $_POST[‘state’];
$zip = $_POST[‘zip’];
$phone = $_POST[‘phone’];
$email = $_POST[‘eMail’];
$rail = $_POST[‘railRoad’];
$position = $_POST[‘position’];
$years = $_POST[‘yrsOfService’];
$before = $_POST[‘before71’];
$contact = $_POST[‘contactMe’];
$sFirstName = $_POST[‘sFirstName’];
$sLastName = $_POST[‘sLastName’];
$sAddress = $_POST[‘sAddress’];
$sAddress2 = $_POST[‘sAddress2’];
$sCity = $_POST[‘sCity’];
$sState = $_POST[‘sState’];
$sZip = $_POST[‘sZip’];
$sPhone = $_POST[‘sPhone’];
$sEmail = $_POST[‘sEmail’];
$found = $_POST[‘foundUs’];
$comment = $_POST[‘comment’];
$current = $_POST[‘current’];
$now = date(“Y-m-d H:i:s”);
$wpdb->insert(“wp_registrants”, array(
“REGISTRANT_ID” => 0,
“FIRSTNAME” => $firstName,
“LASTNAME” => $lastName,
“ADDRESS_1” => $address,
“ADDRESS_2” => $address_2,
“CITY” => $city,
“STATE” => $state,
“ZIP” => $zip,
“PHONE” => $phone,
“EMAIL” => $email,
“RAILROAD” => $rail,
“POSITION” => $position,
“YEARS_OF_SERVICE” => $years,
“BEFORE_1971” => $before,
“CURRENT_EMPLOYEE” => $current,
“CONTACT_ME” => $contact,
“SUBMITTED_FIRSTNAME” => $sFirstName,
“SUBMITTED_LASTNAME” => $sLastName,
“SUBMITTED_ADDRESS_1” => $sAddress,
“SUBMITTED_ADDRESS_2” => $sAddress2,
“SUBMITTED_CITY” => $sCity,
“SUBMITTED_STATE” => $sState,
“SUBMITTED_ZIP” => $sZip,
“SUBMITTED_PHONE” => $sPhone,
“SUBMITTED_EMAIL” => $sEmail,
“FIND_MUSEUM” => $found,
“COMMENTS” => $comment,
“DATE_REGISTERED” => $now
));
echo “Success!”;
}
[/insert_php]
