Initial commit

This commit is contained in:
Nero 2019-08-14 19:22:54 +02:00
commit 40a2da38a2
7 changed files with 120 additions and 0 deletions

32
FormField.php Normal file
View file

@ -0,0 +1,32 @@
<?php
namespace Post;
class FormField {
protected $value="";
public function __construct($vars = array()) {
foreach($vars as $k=>$v) {
$this->$k = $vars[$k];
}
}
public function getValue() {
return $this->value;
}
public function setValue($val) {
$this->value=$val;
}
public function validate() {
return true;
}
public function reset() {
$this->value="";
}
public function loadFromEnv($name) {
$this->value=$_POST[$name];
}
}