\n"; if (strlen($_POST["txtCONTACT_FIRST"]) > 128) $strerrs = $strerrs . "FIRST NAME is too long. Can only be up to 128 characters.
\n"; if (!ctype_print($_POST["txtCONTACT_FIRST"])) $strerrs = $strerrs . "FIRST NAME contains illegal characters. Use letters only.
\n"; //Last Name - must be there, must be there, must be printable if (!strlen($_POST["txtCONTACT_LAST"])) $strerrs = $strerrs . "You must enter a LAST NAME.
\n"; if (strlen($_POST["txtCONTACT_LAST"]) > 128) $strerrs = $strerrs . "LAST NAME is too long. Can only be up to 128 characters.
\n"; if (!ctype_print($_POST["txtCONTACT_LAST"])) $strerrs = $strerrs . "LAST NAME contains illegal characters. Use letters only.
\n"; //Middle Initial - If present, must be a SINGLE LETTER if (strlen($_POST["txtCONTACT_MIDDLE"]) > 1) $strerrs = $strerrs . "MIDDLE INITAL must be a SINGLE LETTER.
\n"; if (strlen($_POST["txtCONTACT_MIDDLE"])) if (!ctype_alpha($_POST["txtCONTACT_MIDDLE"])) $strerrs = $strerrs . "MIDDLE INITIAL must be a SINGLE LETTER.
\n"; // EMAIL - Must be present and valid e-mail if (validate_email($_POST["txtCONTACT_EMAIL"])) $strerrs = $strerrs . "Invalid EMAIL Address entered.
\n"; //ADDR1 - must be there, must be there, must be printable, <= 128 if (!strlen($_POST["txtADDRESS1"])) $strerrs = $strerrs . "You must enter at least one postal address line.
\n"; if (strlen($_POST["txtADDRESS1"]) > 128) $strerrs = $strerrs . "Your first postal address line is too long. Can only be up to 128 characters.
\n"; if (!ctype_print($_POST["txtADDRESS1"])) $strerrs = $strerrs . "Postal address line 1 contains illegal characters.
\n"; //ADDR2 - must be printable, <= 128 if (strlen($_POST["txtADDRESS2"])) { if (strlen($_POST["txtADDRESS2"]) > 128) $strerrs = $strerrs . "Your second postal address line is too long. Can only be up to 128 characters.
\n"; if (!ctype_print($_POST["txtADDRESS2"])) $strerrs = $strerrs . "Postal address line 2 contains illegal characters.
\n"; } //CITY - must be there, must be printable, <= 128 if (!strlen($_POST["txtCITY"])) $strerrs = $strerrs . "CITY NAME cannot be blank.
\n"; if (strlen($_POST["txtCITY"]) > 128) $strerrs = $strerrs . "CITY NAME is too long. Can only be up to 128 characters.
\n"; if (!ctype_print($_POST["txtCITY"])) $strerrs = $strerrs . "CITY NAME contains illegal characters.
\n"; //STATE - must be printable, <= 64 if (strlen($_POST["txtSTATE"])) { if (strlen($_POST["txtSTATE"]) > 64) $strerrs = $strerrs . "STATE/PROVINCE is too long. Can only be up to 64 characters.
\n"; if (!ctype_print($_POST["txtSTATE"])) $strerrs = $strerrs . "STATE/PROVINCE contains illegal characters.
\n"; } //POSTAL - must be printable, <= 32 if (strlen($_POST["txtPOSTAL"])) { if (strlen($_POST["txtPOSTAL"]) > 32) $strerrs = $strerrs . "POSTAL CODE is too long. Can only be up to 32 characters.
\n"; if (!ctype_print($_POST["txtPOSTAL"])) $strerrs = $strerrs . "POSTAL CODE contains illegal characters.
\n"; } // NATION - Must be selected. No validation neccessary - form forces selected //PHONE1 - must be there, must be printable, <= 64 if (!strlen($_POST["txtPHONE1"])) $strerrs = $strerrs . "Phone Number 1 cannot be blank.
\n"; if (strlen($_POST["txtPHONE1"]) > 64) $strerrs = $strerrs . "Phone Number 1 is too long. Can only be up to 64 characters.
\n"; if (!ctype_print($_POST["txtPHONE1"])) $strerrs = $strerrs . "Phone Number 1 contains illegal characters.
\n"; //PHONE2 - must be printable, <= 64 if (strlen($_POST["txtPHONE2"])) { if (strlen($_POST["txtPHONE2"]) > 64) $strerrs = $strerrs . "Phone Number 2 is too long. Can only be up to 64 characters.
\n"; if (!ctype_print($_POST["txtPHONE2"])) $strerrs = $strerrs . "Phone Number 2 contains illegal characters.
\n"; } //FAX - must be printable, <= 64 if (strlen($_POST["txtFAX"])) { if (strlen($_POST["txtFAX"]) > 64) $strerrs = $strerrs . "FAX Number is too long. Can only be up to 64 characters.
\n"; if (!ctype_print($_POST["txtFAX"])) $strerrs = $strerrs . "FAX Number contains illegal characters.
\n"; } //PAGER - must be printable, <= 64 if (strlen($_POST["txtPAGER"])) { if (strlen($_POST["txtPAGER"]) > 64) $strerrs = $strerrs . "Pager Number is too long. Can only be up to 64 characters.
\n"; if (!ctype_print($_POST["txtPAGER"])) $strerrs = $strerrs . "Pager Number contains illegal characters.
\n"; } //CELL - must be printable, <= 64 if (strlen($_POST["txtCELLPHONE"])) { if (strlen($_POST["txtCELPHONE"]) > 64) $strerrs = $strerrs . "Cell Phone Number is too long. Can only be up to 64 characters.
\n"; if (!ctype_print($_POST["txtCELLPHONE"])) $strerrs = $strerrs . "Cell Phone Number contains illegal characters.
\n"; } //IDQUERY - must be there, must be printable, <= 240 if (!strlen($_POST["txtIDQUERY"])) $strerrs = $strerrs . "The security question cannot be blank.
\n"; if (strlen($_POST["txtIDQUERY"]) > 240) $strerrs = $strerrs . "The security question is too long. Can only be up to 240 characters.
\n"; if (!ctype_print($_POST["txtIDQUERY"])) $strerrs = $strerrs . "The security question contains illegal characters.
\n"; //IDDATA - must be there, must be printable, <= 128 if (!strlen($_POST["txtIDDATA"])) $strerrs = $strerrs . "The answer to the security question cannot be blank.
\n"; if (strlen($_POST["txtIDDATA"]) > 128) $strerrs = $strerrs . "The answer to the security question is too long. Can only be up to 128 characters.
\n"; if (!ctype_print($_POST["txtIDDATA"])) $strerrs = $strerrs . "The answer to the security question contains illegal characters.
\n"; return $strerrs; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "Manage Your Contact Information\n"; echo "\n"; echo "\n"; $strmsg = ""; session_start(); echo "\n"; if (!isset($_SESSION["WNUID"])) backtologin("contact.php"); else { // First - see if this is a post - if so, validate and save if (($_REQUEST["DOSAVE"] == "YES") OR ($_POST["DOSAVE"] == "YES")) { $strmsg = ContactValidate(); if (!strlen($strmsg)) { $strsaveres = ContactSave(); sleep(2); if ($strsaveres != 200) $strmsg = "An internal error has ocurred while trying to save your data." . "It has NOT been saved. We are working on the problem. Please try" . "again later"; else $strmsg = "Your changes have been saved. Please review them below."; } else $strmsg = "Your changes were NOT saved. Please fix the following errors:
".$strmsg; } $arywn["RCODE"] = "000"; $trys = 0; while (($arywn["RCODE"] != 200) && ($trys < 1)) { $trys++; $arywn = XML_GETOWNER($_SESSION["WNUID"], $_SESSION["WNPW"]); sleep(1); } echo "
\n"; echo "
\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
 Manage Account\n"; echo "
\n"; echo "
\n"; echo "
\n"; if (strlen($strmsg)) { echo "

\n"; echo $strmsg . "\n"; echo "

\n"; } if ($arywn["RCODE"] != "000") { echo "

Below is the information about your account. You\n"; echo "can change any of this information here. Any item with a red star \n"; echo "(*)\n"; echo "next to it indicates that you must provide data for that field (ie: it cannot be\n"; echo "left blank).

\n"; } else { echo "

NOTICE: An error ocurred when trying to fetch\n"; echo "your contact information. You will not be able to modify any contact information\n"; echo "at this time. Our staff has been notified of this internal error. Please try\n"; echo "again later.

\n"; $arywn["TITLE"] = "UNKNOWN"; } echo "
\n"; echo " \n"; echo "

Account Title: " . $arywn["TITLE"] . "
\n"; echo "
Account Number: ". $_SESSION["WNUID"] ."

\n"; echo "
\n"; echo "
\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; $striso = MakeISOCombo($arywn["NATION"]); echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo " Contact Last Name:\n"; echo " \n"; echo " \n"; echo " *\n"; echo "
\n"; echo " Contact First Name:\n"; echo " \n"; echo " \n"; echo " *\n"; echo "
\n"; echo " Contact Middle Initial:\n"; echo " \n"; echo " \n"; echo "
\n"; echo " Contact E-Mail Address:\n"; echo " \n"; echo " \n"; echo " *\n"; echo "
\n"; echo " Address Line 1:\n"; echo " \n"; echo " \n"; echo " *\n"; echo "
\n"; echo " Address Line 2:\n"; echo " \n"; echo " \n"; echo "
\n"; echo " City:\n"; echo " \n"; echo " \n"; echo " *\n"; echo "
\n"; echo " State:\n"; echo " \n"; echo " \n"; echo "
\n"; echo " Postal Code:\n"; echo " \n"; echo " \n"; echo "
\n"; echo " City:\n"; echo " \n"; echo " \n"; echo " *\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo "

For all the telephone\n"; echo " numbers, please include the telephone country number (for US it is 1)\n"; echo " and enter your number like this: +1 212 555 1212 if you are in the\n"; echo " U.S.

\n"; echo " Telephone Number #1:\n"; echo " \n"; echo " \n"; echo " *\n"; echo "
\n"; echo " Telephone Number #2:\n"; echo " \n"; echo " \n"; echo " *\n"; echo "
\n"; echo " FAX Number:\n"; echo " \n"; echo " \n"; echo "
\n"; echo " Pager Number:\n"; echo " \n"; echo " \n"; echo "
\n"; echo " Cell Phone Number:\n"; echo " \n"; echo " \n"; echo "
\n"; echo "
\n"; echo "
\n"; echo " \n"; echo " Enter a security question (ie: What is my cats name) We will use this to\n"; echo " identify you if you lose your password:\n"; echo " \n"; echo " \n"; echo " *\n"; echo "
\n"; echo " \n"; echo " Enter the answer to the security question entered above:\n"; echo " \n"; echo " \n"; echo " *\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo "

.\n"; if ($arywn["RCODE"] != "000") { echo "

\n"; } echo "
\n"; echo "

Return to\n"; echo "Account Menu

\n"; } // If not logged in echo "\n"; echo "\n"; ?>