summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/Register.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-04-13 16:00:18 +0200
committerBjörn Geiger2011-04-13 16:00:18 +0200
commit065e21bd99d26b54db2873084d4e1fd468a08e65 (patch)
tree33998b4fafa513239cf02e4297f401ef18d8059a /application/modules/user/forms/Register.php
parentSuspend und Resume Membership + Decline Grouprequest (diff)
downloadpbs2-065e21bd99d26b54db2873084d4e1fd468a08e65.tar.gz
pbs2-065e21bd99d26b54db2873084d4e1fd468a08e65.tar.xz
pbs2-065e21bd99d26b54db2873084d4e1fd468a08e65.zip
Gültigkeit einer E-Mail Adresseüberprüfen
Diffstat (limited to 'application/modules/user/forms/Register.php')
-rw-r--r--application/modules/user/forms/Register.php78
1 files changed, 39 insertions, 39 deletions
diff --git a/application/modules/user/forms/Register.php b/application/modules/user/forms/Register.php
index 1a054c4..c0a4d9d 100644
--- a/application/modules/user/forms/Register.php
+++ b/application/modules/user/forms/Register.php
@@ -3,103 +3,103 @@
class user_Form_Register extends Zend_Form
{
- public function init()
- {
- $this->setName("Register");
+ public function init()
+ {
+ $this->setName("Register");
$this->setMethod('post');
- $this->addElement('text', 'title', array(
+ $this->addElement('text', 'title', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),
+ ),
'required' => true,
'label' => 'Title:',
));
-
-
+
+
$this->addElement('text', 'name', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),
+ ),
'required' => true,
'label' => 'Name:',
));
-
+
$this->addElement('text', 'firstname', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),
+ ),
'required' => true,
'label' => 'Firstname:',
));
-
+
$this->addElement('text', 'street', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),
+ ),
'required' => true,
'label' => 'Street:',
));
-
+
$this->addElement('text', 'housenumber', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),
+ ),
'required' => true,
'label' => 'Housenumber:',
));
-
+
$this->addElement('text', 'city', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),
+ ),
'required' => true,
'label' => 'City:',
));
-
+
$this->addElement('text', 'postalcode', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),
+ ),
'required' => true,
'label' => 'Postalcode:',
));
-
+
$this->addElement('text', 'email', array(
'filters' => array('StringTrim', 'StringToLower'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),array('EmailAddress', "deep" => true, "mx" => true),
+ ),
'required' => true,
'label' => 'Email:',
));
-
+
$this->addElement('password', 'password', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(5, 50)),
- ),
+ array('StringLength', false, array(5, 50)),
+ ),
'required' => true,
'label' => 'Password:',
- ));
-
- $this->addElement('submit', 'register', array(
+ ));
+
+ $this->addElement('submit', 'register', array(
'required' => false,
'ignore' => true,
'label' => 'Register',
- ));
-
-
- }
+ ));
+
+
+ }
+
-
}