Try CumulusClips Cloud Hosting

Add Date Of Birth field in registration

Hi,

how can i add DOB "Date of Birth" at registration page? I already add the field at page, but i can't find how to store it at database. I tried add the following lines:
register.phtml

dob)) ? $user->dob : ''?>" />




register.php
// Validate Dob
if (!empty($_POST['dob'])) {
$dob = $_POST['dob'];
} else {
$this->view->vars->errors['dob'] = Language::getText('dob');
}

thx
Sign In or Register to comment.