values = $_SESSION['valueArray']; $this->errors = $_SESSION['errorArray']; $this->numErrors = count($this->errors); unset($_SESSION['valueArray']); unset($_SESSION['errorArray']); } else{ $this->numErrors = 0; } } /** * setValue - Records the value typed into the given * form field by the user. */ function setValue($field, $value){ $this->values[$field] = $value; } /** * setError - Records new form error given the form * field name and the error message attached to it. */ function setError($field, $errmsg){ $this->errors[$field] = $errmsg; $this->numErrors = count($this->errors); } /** * value - Returns the value attached to the given * field, if none exists, the empty string is returned. */ function value($field) { if(array_key_exists($field,$this->values)) { return htmlspecialchars(stripslashes($this->values[$field])); }else{ return ""; } } /** * error - Returns the error message attached to the * given field, if none exists, the empty string is returned. */ function error($field){ if(array_key_exists($field,$this->errors)){ return $this->errors[$field]; }else{ return ""; } } /* getErrorArray - Returns the array of error messages */ function getErrorArray(){ return $this->errors; } }; $form = new Form(); ?> Eluterius - Brieven aan Brigitte
REGISTREREN |

Log in

" tabindex="1" placeholder="Gebruikersnaam" /> error("user"); ?> error("pass"); ?>
      Ja, ik ben te lui om telkens in te loggen


Brieven aan Brigitte


  • Brieven aan Brigitte is de ombudsdienst van Eluterius. U bent zelf vrij om te geloven of de brieven en Brigitte's antwoorden echt zijn.









En jij?

Wil je Brigitte wil mailen, of zélf voor Brigitte spelen en antwoorden op een brief van iemand anders, dan kan dat hier!


Terug naar de brieven