cellChildren.appendChild(elementInfantInput); cellChildren.appendChild(document.createTextNode(" ")); document.getElementById(elementInfantInput.id).addEventListener("click", changeLabelImgStyle, false); //alert("inserted"); } </script> <section class="content"> <?php if (isset($_REQUEST['submitted'])) { if (isset($_REQUEST['username']) && $_REQUEST['username'] != '') { // if ($userID != $userEditor->usernameExists($_REQUEST['username'])) // if ($retrievedID = $userEditor->usernameExists($_REQUEST['username']) && $retrievedID != $userID) if ($retrievedID = $userEditor->usernameExists($_REQUEST['username'])) { if ($retrievedID == $userID) { $username = $_REQUEST['username']; } else { $errors['username'] = '******'; } } else { $username = $_REQUEST['username']; } } else { $errors['username'] = '******'; } if (isset($_REQUEST['passwordPlaintext']) && $_REQUEST['passwordPlaintext'] != '') { $pw = $_REQUEST['passwordPlaintext']; } else { $errors['passwordPlaintext'] = 'Blank Password';
//alert("inserted"); } </script> <section class="content"> <?php if (isset($_REQUEST['submitted'])) { //echo displayTree($_REQUEST); //print_r($_REQUEST); require_once "classWeddingUser.inc"; $userCreator = new weddingUser(); if (isset($_REQUEST['username']) && $_REQUEST['username'] != '') { if ($userCreator->usernameExists($_REQUEST['username'])) { $errors['username'] = '******'; } else { $username = $_REQUEST['username']; } } else { $errors['username'] = '******'; } if (isset($_REQUEST['passwordPlaintext']) && $_REQUEST['passwordPlaintext'] != '') { $pw = $_REQUEST['passwordPlaintext']; } else { $errors['passwordPlaintext'] = 'Invalid Password'; } if (isset($_REQUEST['name']) && $_REQUEST['name'] != '') { $fullName = $_REQUEST['name']; } else {
if ($_SESSION['username'] == "Guest") { $_SESSION['guest'] = true; } else { $_SESSION['guest'] = false; } if ($currentUser->getCurrentUserIsBridalShower()) { $_SESSION['isBridalShower'] = true; //special sections for exclusive bridal shower guests $page_title = "Bridal Shower Login"; } else { $_SESSION['isBridalShower'] = false; //regular wedding } $currentUser->setCurrentUserLoginTimestamp(); } else { if ($currentUser->usernameExists($_REQUEST['username'])) { $errors['password'] = '******'; } else { $errors['username'] = '******'; } } } } if (isset($_SESSION['isBridalShower']) && $_SESSION['isBridalShower']) { $page_title = "Bridal Shower Login"; } include "header.inc"; ?> <section class="content">