Transfers client details into Millennium.
| 
 Millennium.SDK.Client.SoapClient sdkClient = new Millennium.SDK.Client.SoapClient(); 
 sdkClient.Init("http://ServerDNSNameOrIP/MillenniumSDK/Millenniumsdk.asmx", "DA3DC70B-143F-477d-A26D-8103D8712B4F"); 
 Millennium.SDK.Objects.Client client = new Millennium.SDK.Objects.Client(); 
 client.FirstName = "Mark"; client.LastName = "Smith"; client.Address1 = "85 Fulton St."; client.Address2 = "9A"; client.City = "Boonton"; client.State = "NJ"; client.ZipCode = "07005"; client.IsNonDeliverableAddress = false; client.EmailAddress = "msmith@isp.net"; client.HomeAreaCode = "973"; client.HomePhoneNumber = "5551111"; client.BusinessAreaCode = "973"; client.BusinessPhoneNumber = "5552222"; client.BusinessExtension = ""; client.FaxAreaCode = "973"; client.FaxPhoneNumber = "5553333"; client.CellAreaCode = "973"; client.cCellPhoneNumber = "5554444"; client.Birthday = new DateTime(1981, 10, 6); client.HasChildren = false; client.IsMarried = false; client.AnniversaryDate = new DateTime(2010, 1, 1); client.Sex = Male; client.ConfirmationSequence = "HWEFCSA"; //H-Home, W-Work, E-Email, F-Fax, C-Cell, S-SMS, A-Auto Confirm client.AllowAccountCharge = false; client.AllowPoints = true; client.ConfirmDaysInAdvance = 2; // Set GlobalId only if you are using CO. //client.GlobalId = 97877 
 int clientId = sdkClient.PutClient(client);  | 
Clientform.php
| 
 <?php function strip_html_tags( $text ) { $text = preg_replace( array( // Remove invisible content '@<head[^>]*?>.*?</head>@siu', '@<style[^>]*?>.*?</style>@siu', '@<script[^>]*?.*?</script>@siu', '@<object[^>]*?.*?</object>@siu', '@<embed[^>]*?.*?</embed>@siu', '@<applet[^>]*?.*?</applet>@siu', '@<noframes[^>]*?.*?</noframes>@siu', '@<noscript[^>]*?.*?</noscript>@siu', '@<noembed[^>]*?.*?</noembed>@siu', // Add line breaks before and after blocks '@</?((address)|(blockquote)|(center)|(del))@iu', '@</?((div)|(h[1-9])|(ins)|(isindex)|(p)|(pre))@iu', '@</?((dir)|(dl)|(dt)|(dd)|(li)|(menu)|(ol)|(ul))@iu', '@</?((table)|(th)|(td)|(caption))@iu', '@</?((form)|(button)|(fieldset)|(legend)|(input))@iu', '@</?((label)|(select)|(optgroup)|(option)|(textarea))@iu', '@</?((frameset)|(frame)|(iframe))@iu', ), array( ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', "\n\$0", "\n\$0", "\n\$0", "\n\$0", "\n\$0", "\n\$0", "\n\$0", "\n\$0", ), $text ); $text = strip_tags( $text ); $text = stripslashes(stripslashes (stripslashes ($text))); $text = trim ($text); $text = htmlentities($text, ENT_QUOTES); return $text; } class BaseObject { public $Id = 0; public $ObjectState = 'Add'; public $DateDeleted = "0001-01-01T00:00:00"; public $GlobalId = 0; } class Client extends BaseObject { public $LastName = ''; public $FirstName = ''; } //Section to edit with your own information $soapClientWSDL = "http://ServerDNSNameOrIP/MillenniumSDK/MillenniumSDK.asmx?wsdl"; $soapClientVersion = 'SOAP_1_1'; $millenniumGUID = 'D691524B-C82D-7FB2-4E05-43446027B2FE'; $logonUser = "username"; $logonPass = "password"; //End editable section //compile variables into array to be error checked $boolean = array("IsNonDeliverableAddress", "HasChildren", "IsMarried", "IsPrimaryResidence", "ChecksAllowed", "NoMailingsAllowed", "IsInactive", "DisplayNotesInRegister", "ConfirmAppointments", "AllowPoints", "DisplayNotesInAppointmentBook", "DisplayUDFInRegister", "DisplayUDFInAppointmentBook", "CanViewApptsOnline", "CanBookApptsOnline", "AllowAccountCharge", "SendEmails", "ConfirmViaEmail", "ConfirmViaHomePhone", "ConfirmViaBusinessPhone", "ConfirmViaFax", "ConfirmViaCellPhone", "ConfirmViaSMS", "ConfirmViaAutoConfirmation", "HasMemberships", "HasCreditCardOnFile", "IsCreditCardValid", "ConfirmationSequence"); $string = array("LastName", "FirstName", "Address1", "Address2", "City", "State", "HotelRoomNumber", "Notes", "LicenseNumber", "DotNetPassword"); $areacode = array("HomeAreaCode", "BusinessAreaCode", "FaxAreaCode", "CellAreaCode"); $phone = array( "HomePhoneNumber", "BusinessPhoneNumber", "FaxPhoneNumber", "CellPhoneNumber"); $extension = array("BusinessExtension"); $dates = array("FirstVisitDate", "LastVisitDate", "Birthday", "AnniversaryDate", "DateCreated", "LastChangedDateTime"); $number = array("NumberOfVisits", "PrimaryEmployeeId", "GuestId", "TermId", "ReferralTypeId", "ReferredByClientId", "ConfirmDaysInAdvance", "ProfessionId"); //Other Variables $search = array(".", "(", ")", "-", " "); $exSearch = array(".", "(", ")", "-", " ", "e", "x"); $dateSearch = array(".", "/", " "); $sendToMil = array(); $error = NULL; $error = array(); $soapHeader = array(); //if submit is pressed if (!empty($_POST['submit'])) { //Check true/false foreach ($boolean as $key=>$value) { switch($_POST[$value]) { case "false": $sendToMil[$value] = false; break; 
 default: $sendToMil[$value] = true; break; } //echo "$value: " . $sendToMil[$value] . "<br/><br/>"; } unset ($key, $value); 
 //check string foreach ($string as $key=>$value) { if (empty($_POST[$value])) { $error[$value] = '1'; }else{ $sendToMil[$value] = strip_html_tags($_POST[$value]); } } unset ($key, $value); 
 //check areacode foreach ($areacode as $key=>$value) { if (empty($_POST[$value])) { $error[$value] = '1'; }else{ $newValue = strip_html_tags($_POST[$value]); $newValue = str_replace($search, "", $newValue); if ((is_numeric($newValue)) && (strlen($newValue)==3)) { $sendToMil[$value] = $newValue; }else{ $error[$value] = '1'; } } } unset ($key, $value); 
 //check phone foreach ($phone as $key=>$value) { if (empty($_POST[$value])) { $error[$value] = '1'; }else{ $newValue = strip_html_tags($_POST[$value]); $newValue = str_replace($search, "", $newValue); if ((is_numeric($newValue)) && (strlen($newValue)==7)) { $sendToMil[$value] = $newValue; }else{ $error[$value] = '1'; } } } unset ($key, $value); 
 //check extension foreach ($extension as $key=>$value) { if (empty($_POST[$value])) { $error[$value] = '1'; }else{ $newValue = strip_html_tags($_POST[$value]); $newValue = str_replace($exSearch, "", $newValue); if ((is_numeric($newValue)) && (strlen($newValue)<=5)) { $sendToMil[$value] = $newValue; }else{ $error[$value] = '1'; } } } unset ($key, $value); 
 //check number foreach ($number as $key=>$value) { if (empty($_POST[$value])) { $error[$value] = '1'; }else{ $newValue = strip_html_tags($_POST[$value]); $newValue = str_replace($search, "", $newValue); if (is_numeric($newValue)) { $sendToMil[$value] = $newValue; }else{ $error[$value] = '1'; } } } unset ($key, $value); 
 //check dates foreach ($dates as $key=>$value) { if (empty($_POST[$value])) { $error[$value] = '1'; }else{ $newValue = strip_html_tags($_POST[$value]); $newValue = str_replace($dateSearch, "-", $newValue); if (preg_match("%^(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])$%", $newValue)) { $sendToMil[$value] = $newValue . "T00:00:00"; }else{ $error[$value] = '1'; } } } unset ($key, $value); 
 
 //check zipcode if (empty($_POST['ZipCode'])) { $error['ZipCode'] = '1'; }else{ $newValue = strip_html_tags($_POST['ZipCode']); if (is_numeric($newValue)) { $sendToMil['ZipCode'] = $newValue; }else{ $error['ZipCode'] = '1'; } } 
 //check Age if (empty($_POST['Age'])) { $error['Age'] = '1'; }else{ $newValue = strip_html_tags($_POST['Age']); if (is_numeric($newValue) && ($_POST['Age']<127)) { $sendToMil['Age'] = $newValue; }else{ $error['Age'] = '1'; } } 
 //check Sex if (empty($_POST['Sex'])) { $error['Sex'] = '1'; }else{ $newValue = strip_html_tags($_POST['Sex']); switch($newValue) { case "Female"; $sendToMil['Sex'] = $newValue; break; 
 default: $sendToMil['Sex'] = 'Male'; break; } } 
 if (empty($_POST['EmailAddress'])) { $error['EmailAddress'] = '1'; }else{ if (preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i", $_POST['EmailAddress'])) { $sendToMil['EmailAddress'] = $_POST['EmailAddress']; }else{ $error['EmailAddress'] = '1'; } } 
 //if no errors if (empty($error)) { //Connect to SoapClient WSDL $client = new SoapClient($soapClientWSDL, array('trace' => true, 'soap_version' => $soapClientVersion)); 
 //Set soap header for Logon $newHeader = array("MillenniumGuid"=>$millenniumGUID); $soapHeader[] = new SOAPHeader("http://www.harms-software.com/Millennium.SDK", 'MillenniumInfo', $newHeader); $client->__setSoapHeaders($soapHeader); 
 //compile logon arguments $logonArgs = array('User' => $logonUser, 'Password' => $logonPass); 
 //Execute Logon to Millennium SDK server try{ $logonResult = $client->Logon($logonArgs); }catch(SoapFault $soapFault){ /*if failed, display soap message sent, received, and the soapfault generated echo "Fault!!!"; var_dump($soapFault); echo "<b>Request</b> :<br>", htmlentities($client->__getLastRequest()), "<br>"; echo "<b>Response</b> :<br>", htmlentities($client->__getLastResponse()), "<br>"; */ } 
 if ($logonResult->LogonResult == 1) { //Get full Response and parse it for the sessionID $LoginResponseMessage = $client->__getLastResponse(); $LoginResponseMessage = strtolower($LoginResponseMessage); $pattern = '/<sessionid>(.{36})<\/sessionid>/'; preg_match($pattern, $LoginResponseMessage, $sessionIDmatches); 
 //Display SessionID echo "<h3>SessionID</h3>"; $sessionID = $sessionIDmatches[1]; echo $sessionID . "<br/><br/>"; 
 //Delete Old headers $client->__setSoapHeaders(NULL); 
 //Set New Header with SessionID and GUID $newHeader2 = array("SessionId"=>$sessionID); $soapHeader[] = new SOAPHeader("http://www.harms-software.com/Millennium.SDK", 'SessionInfo', $newHeader2); $client->__setSoapHeaders($soapHeader); //create object to send to millennium as PutClient parameters $clientObject = new Client(); 
 //define object properties according to wsdl. (Case sensitive) $clientObject->Id = 0; //User Defined //Set GlobalId only if you are using CO. //$clientObject->GlobalId = $sendToMil['GlobalId']; $clientObject->LastName = $sendToMil['LastName']; $clientObject->FirstName = $sendToMil['FirstName']; $clientObject->Address1 = $sendToMil['Address1']; $clientObject->Address2 = $sendToMil['Address2']; $clientObject->City = $sendToMil['City']; $clientObject->State = $sendToMil['State']; $clientObject->ZipCode = $sendToMil['ZipCode']; $clientObject->PostalSortCode = $sendToMil['PostalSortCode']; $clientObject->IsNonDeliverableAddress = $sendToMil['IsNonDeliverableAddress']; $clientObject->HomeAreaCode = $sendToMil['HomeAreaCode']; $clientObject->HomePhoneNumber = $sendToMil['HomePhoneNumber']; $clientObject->BusinessAreaCode = $sendToMil['BusinessAreaCode']; $clientObject->BusinessPhoneNumber = $sendToMil['BusinessPhoneNumber']; $clientObject->BusinessExtension = $sendToMil['BusinessExtension']; $clientObject->FirstVisitDate = $sendToMil['FirstVisitDate']; $clientObject->LastVisitDate = $sendToMil['LastVisitDate']; $clientObject->NumberOfVisits = $sendToMil['NumberOfVisits']; $clientObject->PrimaryEmployeeId = $sendToMil['PrimaryEmployeeId']; $clientObject->Age = $sendToMil['Age']; $clientObject->Birthday = $sendToMil['Birthday']; $clientObject->HasChildren = $sendToMil['HasChildren']; $clientObject->IsMarried = $sendToMil['IsMarried']; $clientObject->IsPrimaryResidence = $sendToMil['IsPrimaryResidence']; $clientObject->AnniversaryDate = $sendToMil['AnniversaryDate']; $clientObject->Sex = $sendToMil['Sex']; $clientObject->ChecksAllowed = $sendToMil['ChecksAllowed']; $clientObject->NoMailingsAllowed = $sendToMil['NoMailingsAllowed']; $clientObject->IsInactive = $sendToMil['IsInactive']; $clientObject->DisplayNotesInRegister = $sendToMil['DisplayNotesInRegister']; $clientObject->ConfirmAppointments = $sendToMil['ConfirmAppointments']; $clientObject->GuestId = $sendToMil['GuestId']; $clientObject->HotelRoomNumber = $sendToMil['HotelRoomNumber']; $clientObject->DateCreated = $sendToMil['DateCreated']; $clientObject->AllowPoints = $sendToMil['AllowPoints']; $clientObject->DisplayNotesInAppointmentBook = $sendToMil['DisplayNotesInAppointmentBook']; $clientObject->ConfirmationSequence = "HWEFCSA"; $clientObject->DisplayUDFInRegister = $sendToMil['DisplayUDFInRegister']; $clientObject->DisplayUDFInAppointmentBook = $sendToMil['DisplayUDFInAppointmentBook']; $clientObject->LastChangedDateTime = $sendToMil['LastChangedDateTime']; $clientObject->Notes = $sendToMil['Notes']; $clientObject->LicenseNumber = $sendToMil['LicenseNumber']; $clientObject->EmailAddress = $sendToMil['EmailAddress']; $clientObject->FaxAreaCode = $sendToMil['FaxAreaCode']; $clientObject->FaxPhoneNumber = $sendToMil['FaxPhoneNumber']; $clientObject->CellAreaCode = $sendToMil['CellAreaCode']; $clientObject->CellPhoneNumber = $sendToMil['CellPhoneNumber']; $clientObject->CreditLimit = "0.00"; $clientObject->TermId = "0"; $clientObject->ReferralTypeId = $sendToMil['ReferralTypeId']; $clientObject->ReferredByClientId = $sendToMil['ReferredByClientId']; $clientObject->DotNetPassword = $sendToMil['DotNetPassword']; $clientObject->CanViewApptsOnline = $sendToMil['CanViewApptsOnline']; $clientObject->CanBookApptsOnline = $sendToMil['CanBookApptsOnline']; $clientObject->AllowAccountCharge = $sendToMil['AllowAccountCharge']; $clientObject->SendEmails = $sendToMil['SendEmails']; $clientObject->ConfirmViaEmail = $sendToMil['ConfirmViaEmail']; $clientObject->ConfirmViaHomePhone = $sendToMil['ConfirmViaHomePhone']; $clientObject->ConfirmViaBusinessPhone = $sendToMil['ConfirmViaBusinessPhone']; $clientObject->ConfirmViaFax = $sendToMil['ConfirmViaFax']; $clientObject->ConfirmViaCellPhone = $sendToMil['ConfirmViaCellPhone']; $clientObject->ConfirmViaSMS = $sendToMil['ConfirmViaSMS']; $clientObject->ConfirmViaAutoConfirmation = $sendToMil['ConfirmViaAutoConfirmation']; $clientObject->ConfirmDaysInAdvance = $sendToMil['ConfirmDaysInAdvance']; $clientObject->HasMemberships = $sendToMil['HasMemberships']; $clientObject->HasCreditCardOnFile = $sendToMil['HasCreditCardOnFile']; $clientObject->IsCreditCardValid = $sendToMil['IsCreditCardValid']; $clientObject->ProfessionId = $sendToMil['ProfessionId']; 
 //Print out PutClient object 
 echo "<h3>Object being sent to PutClient:</h3>"; print_r($clientObject); echo "<br/>"; 
 
 //Execute PutClient try{ $result = $client->PutClient(array('client' => $clientObject)); }catch(SoapFault $soapFault){ echo "<br/>Fault!!!"; var_dump($soapFault); echo "<br/><b>Request</b> :<br>", htmlentities($client->__getLastRequest()), "<br>"; echo "<br/><b>Response</b> :<br>", htmlentities($client->__getLastResponse()), "<br>"; $error['PutClient'] = "PutClient Failed."; } 
 //If successful, Q Number will appear $clientid = $result->PutClientResult; $success = "<p><b>Q Number</b>: $clientid</p>"; }else{ $error['Logon'] = "Logon Failed"; } } 
 } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>SDK test</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="wrapper"> <div class="topbox"> <?php if (!empty($success)) { echo "<p>You have sucessfully inserted information into Millennium</p>"; echo $success; } if (!empty($error['PutClient'])) { echo $error['PutClient']; } if (!empty($error['Logon'])) { echo $error['Logon']; } ?> </div> <form method="post"> <fieldset><legend>Sample Contact Form</legend> <label for="LastName" class="<?php if(!empty($error['LastName'])){echo "error";}?>">Last Name:</label> <input type="text" name="LastName" id="LastName" value="<?php echo $_POST['LastName']; ?>"/><br/> 
 <label for="FirstName" class="<?php if(!empty($error['FirstName'])){echo "error";}?>">First Name</label> <input type="text" name="FirstName" id="FirstName" value="<?php echo $_POST['FirstName']; ?>"/><br/> 
 <label for="Address1" class="<?php if(!empty($error['Address1'])){echo "error";}?>">Address1</label> <input type="text" name="Address1" id="Address1" value="<?php echo $_POST['Address1']; ?>"/><br/> 
 <label for="Address2" class="<?php if(!empty($error['Address2'])){echo "error";}?>">Address2</label> <input type="text" name="Address2" id="Address2" value="<?php echo $_POST['Address2']; ?>"/><br/> 
 <label for="City" class="<?php if(!empty($error['City'])){echo "error";}?>">City</label> <input type="text" name="City" id="City" value="<?php echo $_POST['City']; ?>"/><br/> 
 <label for="State" class="<?php if(!empty($error['State'])){echo "error";}?>">State</label> <input type="text" name="State" id="State" value="<?php echo $_POST['State']; ?>"/><br/> 
 <label for="ZipCode" class="<?php if(!empty($error['ZipCode'])){echo "error";}?>">ZipCode</label> <input type="text" name="ZipCode" id="ZipCode" value="<?php echo $_POST['ZipCode']; ?>"/><br/> 
 <label for="IsNonDeliverableAddress" class="<?php if(!empty($error['IsNonDeliverableAddress'])){echo "error";}?>">IsNonDeliverableAddress</label> <select name="IsNonDeliverableAddress" id="IsNonDeliverableAddress"> <option value="true" <?php if($_POST['IsNonDeliverableAddress'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['IsNonDeliverableAddress'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="HomeAreaCode" class="<?php if(!empty($error['HomeAreaCode'])){echo "error";}?>">HomeAreaCode</label> <input type="text" name="HomeAreaCode" id="HomeAreaCode" value="<?php echo $_POST['HomeAreaCode']; ?>" title="Numbers only"/><br/> 
 <label for="HomePhoneNumber" class="<?php if(!empty($error['HomePhoneNumber'])){echo "error";}?>">HomePhoneNumber</label> <input type="text" name="HomePhoneNumber" id="HomePhoneNumber" value="<?php echo $_POST['HomePhoneNumber']; ?>" title="Numbers only"/><br/> <label for="BusinessAreaCode" class="<?php if(!empty($error['BusinessAreaCode'])){echo "error";}?>">BusinessAreaCode</label> <input type="text" name="BusinessAreaCode" id="BusinessAreaCode" value="<?php echo $_POST['BusinessAreaCode']; ?>" title="Numbers only"/><br/> 
 <label for="BusinessPhoneNumber" class="<?php if(!empty($error['BusinessPhoneNumber'])){echo "error";}?>">BusinessPhoneNumber</label> <input type="text" name="BusinessPhoneNumber" id="BusinessPhoneNumber" value="<?php echo $_POST['BusinessPhoneNumber']; ?>" title="Numbers only"/><br/> 
 <label for="BusinessExtension" class="<?php if(!empty($error['BusinessExtension'])){echo "error";}?>">BusinessExtension</label> <input type="text" name="BusinessExtension" id="BusinessExtension" value="<?php echo $_POST['BusinessExtension']; ?>" title="Numbers only"/><br/> 
 <label for="FirstVisitDate" class="<?php if(!empty($error['FirstVisitDate'])){echo "error";}?>">FirstVisitDate</label> <input type="text" name="FirstVisitDate" id="FirstVisitDate" value="<?php echo $_POST['FirstVisitDate']; ?>" title="yyyy-mm-dd"/><br/> 
 <label for="LastVisitDate" class="<?php if(!empty($error['LastVisitDate'])){echo "error";}?>">LastVisitDate</label> <input type="text" name="LastVisitDate" id="LastVisitDate" value="<?php echo $_POST['LastVisitDate']; ?>" title="yyyy-mm-dd"/><br/> 
 <label for="NumberOfVisits" class="<?php if(!empty($error['NumberOfVisits'])){echo "error";}?>">NumberOfVisits</label> <input type="text" name="NumberOfVisits" id="NumberOfVisits" value="<?php echo $_POST['NumberOfVisits']; ?>" title="Numbers only"/><br/> 
 <label for="PrimaryEmployeeId" class="<?php if(!empty($error['PrimaryEmployeeId'])){echo "error";}?>">PrimaryEmployeeId</label> <input type="text" name="PrimaryEmployeeId" id="PrimaryEmployeeId" value="<?php echo $_POST['PrimaryEmployeeId']; ?>" title="Numbers only"/><br/> 
 <label for="Age" class="<?php if(!empty($error['Age'])){echo "error";}?>">Age</label> <input type="text" name="Age" id="Age" value="<?php echo $_POST['Age']; ?>" title="Numbers only"/><br/> 
 <label for="Birthday" class="<?php if(!empty($error['Birthday'])){echo "error";}?>">Birthday</label> <input type="text" name="Birthday" id="Birthday" value="<?php echo $_POST['Birthday']; ?>" title="yyyy-mm-dd"/><br/> 
 <label for="HasChildren" class="<?php if(!empty($error['HasChildren'])){echo "error";}?>">HasChildren</label> <select name="HasChildren" id="HasChildren"> <option value="true" <?php if($_POST['HasChildren'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['HasChildren'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="IsMarried" class="<?php if(!empty($error['IsMarried'])){echo "error";}?>">IsMarried</label> <select name="IsMarried" id="IsMarried"> <option value="true" <?php if($_POST['IsMarried'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['IsMarried'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="IsPrimaryResidence" class="<?php if(!empty($error['IsPrimaryResidence'])){echo "error";}?>">IsPrimaryResidence</label> <select name="IsPrimaryResidence" id="IsPrimaryResidence"> <option value="true" <?php if($_POST['IsPrimaryResidence'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['IsPrimaryResidence'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="AnniversaryDate" class="<?php if(!empty($error['AnniversaryDate'])){echo "error";}?>">AnniversaryDate</label> <input type="text" name="AnniversaryDate" id="AnniversaryDate" value="<?php echo $_POST['AnniversaryDate']; ?>" title="yyyy-mm-dd"/><br/> 
 <label for="Sex" class="<?php if(!empty($error['Sex'])){echo "error";}?>">Sex</label> <select name="Sex" id="Sex"> <option value="Male" <?php if($_POST['Sex'] == 'Male'){echo "selected=\"selected\"";} ?>>Male</option> <option value="Female" <?php if($_POST['Sex'] == 'Female'){echo "selected=\"selected\"";} ?>>Female</option> </select><br/> 
 <label for="ChecksAllowed" class="<?php if(!empty($error['ChecksAllowed'])){echo "error";}?>">ChecksAllowed</label> <select name="ChecksAllowed" id="ChecksAllowed"> <option value="true" <?php if($_POST['ChecksAllowed'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['ChecksAllowed'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="NoMailingsAllowed" class="<?php if(!empty($error['NoMailingsAllowed'])){echo "error";}?>">NoMailingsAllowed</label> <select name="NoMailingsAllowed" id="NoMailingsAllowed"> <option value="true" <?php if($_POST['NoMailingsAllowed'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['NoMailingsAllowed'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="IsInactive" class="<?php if(!empty($error['IsInactive'])){echo "error";}?>">IsInactive</label> <select name="IsInactive" id="IsInactive"> <option value="true" <?php if($_POST['IsInactive'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['IsInactive'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="DisplayNotesInRegister" class="<?php if(!empty($error['DisplayNotesInRegister'])){echo "error";}?>">DisplayNotesInRegister</label> <select name="DisplayNotesInRegister" id="DisplayNotesInRegister"> <option value="true" <?php if($_POST['DisplayNotesInRegister'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['DisplayNotesInRegister'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="ConfirmAppointments" class="<?php if(!empty($error['ConfirmAppointments'])){echo "error";}?>">ConfirmAppointments</label> <select name="ConfirmAppointments" id="ConfirmAppointments"> <option value="true" <?php if($_POST['ConfirmAppointments'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['ConfirmAppointments'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="GuestId" class="<?php if(!empty($error['GuestId'])){echo "error";}?>">GuestId</label> <input type="text" name="GuestId" id="GuestId" value="<?php echo $_POST['GuestId']; ?>"/><br/> 
 <label for="HotelRoomNumber" class="<?php if(!empty($error['HotelRoomNumber'])){echo "error";}?>">HotelRoomNumber</label> <input type="text" name="HotelRoomNumber" id="HotelRoomNumber" value="<?php echo $_POST['HotelRoomNumber']; ?>"/><br/> 
 <label for="DateCreated" class="<?php if(!empty($error['DateCreated'])){echo "error";}?>">DateCreated</label> <input type="text" name="DateCreated" id="DateCreated" value="<?php echo $_POST['DateCreated']; ?>" title="yyyy-mm-dd"/><br/> 
 <label for="AllowPoints" class="<?php if(!empty($error['AllowPoints'])){echo "error";}?>">AllowPoints</label> <select name="AllowPoints" id="AllowPoints"> <option value="true" <?php if($_POST['AllowPoints'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['AllowPoints'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="DisplayNotesInAppointmentBook" class="<?php if(!empty($error['DisplayNotesInAppointmentBook'])){echo "error";}?>">DisplayNotesInAppointmentBook</label> <select name="DisplayNotesInAppointmentBook" id="DisplayNotesInAppointmentBook"> <option value="true" <?php if($_POST['DisplayNotesInAppointmentBook'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['DisplayNotesInAppointmentBook'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="DisplayUDFInRegister" class="<?php if(!empty($error['DisplayUDFInRegister'])){echo "error";}?>">DisplayUDFInRegister</label> <select name="DisplayUDFInRegister" id="DisplayUDFInRegister"> <option value="true" <?php if($_POST['DisplayUDFInRegister'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['DisplayUDFInRegister'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="DisplayUDFInAppointmentBook" class="<?php if(!empty($error['DisplayUDFInAppointmentBook'])){echo "error";}?>">DisplayUDFInAppointmentBook</label> <select name="DisplayUDFInAppointmentBook" id="DisplayUDFInAppointmentBook"> <option value="true" <?php if($_POST['DisplayUDFInAppointmentBook'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['DisplayUDFInAppointmentBook'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="LastChangedDateTime" class="<?php if(!empty($error['LastChangedDateTime'])){echo "error";}?>">LastChangedDateTime</label> <input type="text" name="LastChangedDateTime" id="LastChangedDateTime" value="<?php echo $_POST['LastChangedDateTime']; ?>" title="yyyy-mm-dd"/><br/> 
 <label for="Notes" class="<?php if(!empty($error['Notes'])){echo "error";}?>">Notes</label> <input type="text" name="Notes" id="Notes" value="<?php echo $_POST['Notes']; ?>"/><br/> 
 <label for="LicenseNumber" class="<?php if(!empty($error['LicenseNumber'])){echo "error";}?>">LicenseNumber</label> <input type="text" name="LicenseNumber" id="LicenseNumber" value="<?php echo $_POST['LicenseNumber']; ?>"/><br/> 
 <label for="EmailAddress" class="<?php if(!empty($error['EmailAddress'])){echo "error";}?>">EmailAddress</label> <input type="text" name="EmailAddress" id="EmailAddress" value="<?php echo $_POST['EmailAddress']; ?>"/><br/> 
 <label for="FaxAreaCode" class="<?php if(!empty($error['FaxAreaCode'])){echo "error";}?>">FaxAreaCode</label> <input type="text" name="FaxAreaCode" id="FaxAreaCode" value="<?php echo $_POST['FaxAreaCode']; ?>" title="Numbers only"/><br/> 
 <label for="FaxPhoneNumber" class="<?php if(!empty($error['FaxPhoneNumber'])){echo "error";}?>">FaxPhoneNumber</label> <input type="text" name="FaxPhoneNumber" id="FaxPhoneNumber" value="<?php echo $_POST['FaxPhoneNumber']; ?>" title="Numbers only"/><br/> 
 <label for="CellAreaCode" class="<?php if(!empty($error['CellAreaCode'])){echo "error";}?>">CellAreaCode</label> <input type="text" name="CellAreaCode" id="CellAreaCode" value="<?php echo $_POST['CellAreaCode']; ?>" title="Numbers only"/><br/> 
 <label for="CellPhoneNumber" class="<?php if(!empty($error['CellPhoneNumber'])){echo "error";}?>">CellPhoneNumber</label> <input type="text" name="CellPhoneNumber" id="CellPhoneNumber" value="<?php echo $_POST['CellPhoneNumber']; ?>" title="Numbers only"/><br/> 
 <label for="TermId" class="<?php if(!empty($error['TermId'])){echo "error";}?>">TermId</label> <input type="text" name="TermId" id="TermId" value="<?php echo $_POST['TermId']; ?>" title="Numbers only"/><br/> 
 <label for="ReferralTypeId" class="<?php if(!empty($error['ReferralTypeId'])){echo "error";}?>">ReferralTypeId</label> <input type="text" name="ReferralTypeId" id="ReferralTypeId" value="<?php echo $_POST['ReferralTypeId']; ?>" title="Numbers only"/><br/> 
 <label for="ReferredByClientId" class="<?php if(!empty($error['ReferredByClientId'])){echo "error";}?>">ReferredByClientId</label> <input type="text" name="ReferredByClientId" id="ReferredByClientId" value="<?php echo $_POST['ReferredByClientId']; ?>" title="Numbers only"/><br/> 
 <label for="DotNetPassword" class="<?php if(!empty($error['DotNetPassword'])){echo "error";}?>">DotNetPassword</label> <input type="text" name="DotNetPassword" id="DotNetPassword" value="<?php echo $_POST['DotNetPassword']; ?>"/><br/> 
 <label for="CanViewApptsOnline" class="<?php if(!empty($error['CanViewApptsOnline'])){echo "error";}?>">CanViewApptsOnline</label> <select name="CanViewApptsOnline" id="CanViewApptsOnline"> <option value="true" <?php if($_POST['CanViewApptsOnline'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['CanViewApptsOnline'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="CanBookApptsOnline" class="<?php if(!empty($error['CanBookApptsOnline'])){echo "error";}?>">CanBookApptsOnline</label> <select name="CanBookApptsOnline" id="CanBookApptsOnline"> <option value="true" <?php if($_POST['CanBookApptsOnline'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['CanBookApptsOnline'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="AllowAccountCharge" class="<?php if(!empty($error['AllowAccountCharge'])){echo "error";}?>">AllowAccountCharge</label> <select name="AllowAccountCharge" id="AllowAccountCharge"> <option value="true" <?php if($_POST['AllowAccountCharge'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['AllowAccountCharge'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="SendEmails" class="<?php if(!empty($error['SendEmails'])){echo "error";}?>">SendEmails</label> <select name="SendEmails" id="SendEmails"> <option value="true" <?php if($_POST['SendEmails'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['SendEmails'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="ConfirmViaEmail" class="<?php if(!empty($error['ConfirmViaEmail'])){echo "error";}?>">ConfirmViaEmail</label> <select name="ConfirmViaEmail" id="ConfirmViaEmail"> <option value="true" <?php if($_POST['ConfirmViaEmail'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['ConfirmViaEmail'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="ConfirmViaHomePhone" class="<?php if(!empty($error['ConfirmViaHomePhone'])){echo "error";}?>">ConfirmViaHomePhone</label> <select name="ConfirmViaHomePhone" id="ConfirmViaHomePhone"> <option value="true" <?php if($_POST['ConfirmViaHomePhone'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['ConfirmViaHomePhone'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="ConfirmViaBusinessPhone" class="<?php if(!empty($error['ConfirmViaBusinessPhone'])){echo "error";}?>">ConfirmViaBusinessPhone</label> <select name="ConfirmViaBusinessPhone" id="ConfirmViaBusinessPhone"> <option value="true" <?php if($_POST['ConfirmViaBusinessPhone'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['ConfirmViaBusinessPhone'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="ConfirmViaFax" class="<?php if(!empty($error['ConfirmViaFax'])){echo "error";}?>">ConfirmViaFax</label> <select name="ConfirmViaFax" id="ConfirmViaFax"> <option value="true" <?php if($_POST['ConfirmViaFax'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['ConfirmViaFax'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="ConfirmViaCellPhone" class="<?php if(!empty($error['ConfirmViaCellPhone'])){echo "error";}?>">ConfirmViaCellPhone</label> <select name="ConfirmViaCellPhone" id="ConfirmViaCellPhone"> <option value="true" <?php if($_POST['ConfirmViaCellPhone'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['ConfirmViaCellPhone'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="ConfirmViaSMS" class="<?php if(!empty($error['ConfirmViaSMS'])){echo "error";}?>">ConfirmViaSMS</label> <select name="ConfirmViaSMS" id="ConfirmViaSMS"> <option value="true" <?php if($_POST['ConfirmViaSMS'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['ConfirmViaSMS'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="ConfirmViaAutoConfirmation" class="<?php if(!empty($error['ConfirmViaAutoConfirmation'])){echo "error";}?>">ConfirmViaAutoConfirmation</label> <select name="ConfirmViaAutoConfirmation" id="ConfirmViaAutoConfirmation"> <option value="true" <?php if($_POST['ConfirmViaAutoConfirmation'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['ConfirmViaAutoConfirmation'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="ConfirmDaysInAdvance" class="<?php if(!empty($error['ConfirmDaysInAdvance'])){echo "error";}?>">ConfirmDaysInAdvance</label> <input type="text" name="ConfirmDaysInAdvance" id="ConfirmDaysInAdvance" value="<?php echo $_POST['ConfirmDaysInAdvance']; ?>" title="Numbers only"/><br/> 
 <label for="HasMemberships" class="<?php if(!empty($error['HasMemberships'])){echo "error";}?>">HasMemberships</label> <select name="HasMemberships" id="HasMemberships"> <option value="true" <?php if($_POST['HasMemberships'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['HasMemberships'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="HasCreditCardOnFile" class="<?php if(!empty($error['HasCreditCardOnFile'])){echo "error";}?>">HasCreditCardOnFile</label> <select name="HasCreditCardOnFile" id="HasCreditCardOnFile"> <option value="true" <?php if($_POST['HasCreditCardOnFile'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['HasCreditCardOnFile'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="IsCreditCardValid" class="<?php if(!empty($error['IsCreditCardValid'])){echo "error";}?>">IsCreditCardValid</label> <select name="IsCreditCardValid" id="IsCreditCardValid"> <option value="true" <?php if($_POST['IsCreditCardValid'] == 'true'){echo "selected=\"selected\"";} ?>>True</option> <option value="false" <?php if($_POST['IsCreditCardValid'] == 'false'){echo "selected=\"selected\"";} ?>>False</option> </select><br/> 
 <label for="ProfessionId" class="<?php if(!empty($error['ProfessionId'])){echo "error";}?>">ProfessionId</label> <input type="text" name="ProfessionId" id="ProfessionId" value="<?php echo $_POST['ProfessionId']; ?>"/><br/> 
 <input type="submit" name="submit" value="Submit Request" id="submitbtn"/> 
 </fieldset> 
 </form> </div><!--end wrapper--> </body> </html>  | 
Style.css
| 
 @charset "utf-8"; /* CSS Document */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; } label{ width:300px; float:left; clear:left; margin-top:8px; border-bottom:1px dotted #c1c1c1; } input, select{ width:200px; float:left; margin-top:5px; } fieldset{ border:1px solid #000; width:510px; padding:10px 20px; margin:0px auto; } label.error{ background-color:#ff0000; }  | 
© 2016 Millennium by Harms Software Inc. All rights reserved.