<?php require '../other/config.php'; // config.php is always required. require '../other/metaData.php'; // metaData.php is required, contains data to print form, errors and to register require '../functions/generalFunctions.php'; //generalFunctions.php is needed on almost every page. It contains general functions used on many pages. require '../functions/registerFunctions.php'; //registerFunctions.php contain the needed functions to register succesfully. $error = $_SERVER['REQUEST_METHOD'] == 'POST' ? validateRegOrEditCredInput($registerData, $con) : []; //The variable error is an empty array until the post button is pushed. Then, the validation starts. The validation returns errors if needed. require '../pages/requireshtml/htmlTillEndHeader.php'; ?> <div class="column"> <div class="lined"> <h1>Registreren</h1> <span class="bold-line"></span> </div> <p> U bent nu op de pagina waar u kunt registreren om vervolgens met uw account een afspraak te kunnen maken! Hiernaast kunt u uw gegevens invullen en vervolgens op de knop 'Registreren' drukken om uw account aan te maken. </p> <p> Met dit account kunt u inloggen op het afsprakensysteem van Haarstudio C met uw e-mailadres en wachtwoord. </p> <a href="../pages/index.php" class="button link" id="back">Terug</a> </div> <div class="column registerform"> <div class="lined">
<?php require '../other/config.php'; // config.php is always required. require '../other/metaData.php'; // metaData.php is required, contains data to print form, errors and to register require '../functions/generalFunctions.php'; // generalFunctions.php is required on almost every page. It contains general functions used on many pages. require '../functions/editCredentialsFunctions.php'; // editFunctions.php is required, it contains functions to edit your credentials checkIfLoggedIn(); // Check if the user is logged in. $error = $_SERVER['REQUEST_METHOD'] == "POST" ? validateRegOrEditCredInput($credData, $con) : []; //The variable error is an empty array until the post button is pushed. Then, the validation starts. The validation returns errors if needed. require '../pages/requireshtml/htmlTillEndHeader.php'; ?> <div class="column"> <div class="lined"> <h1>Wijzig gegevens</h1> <span class="bold-line"></span> </div> <p> U bent nu op de pagina waar u uw gegevens kunt wijzigen. Uw huidige gegevens staan in de velden ingevoerd. Verander de gegevens die u wilt veranderen en druk hierna op de knop 'Wijzigen' om uw gegevens te wijzigen. </p> <a href="../pages/credentials.php" class="button link" id="back">Terug</a> </div> <div class="column"> <div class="lined"> <h1>Wijzigen</h1>