Welcome Guest, Not a member yet? Register   Sign In
need with date input?
#8

[eluser]newbie boy[/eluser]
i'm sorry aken, i dont know how to do the tagz, but here's my code

my model:
public function addMember($email,$birthday) {

$this->email = $email;
$this->birthday = $birthday;
$this->save(); }

my controller:
public function registerMember() {

$email = $this->input->post('email');
$birthday = $this->input->post('year')."-".$this->input->post('month')."-".$this->input->post('day');

$UserModel = new UserModel();
$UserModel->addMember($email,$birthday);

echo $birthday; }

thanks for the time.


Messages In This Thread
need with date input? - by El Forum - 10-19-2008, 09:14 PM
need with date input? - by El Forum - 10-20-2008, 12:42 AM
need with date input? - by El Forum - 10-20-2008, 12:45 AM
need with date input? - by El Forum - 10-20-2008, 12:47 AM
need with date input? - by El Forum - 10-20-2008, 01:16 AM
need with date input? - by El Forum - 10-20-2008, 01:19 AM
need with date input? - by El Forum - 10-20-2008, 01:25 AM
need with date input? - by El Forum - 10-20-2008, 01:36 AM
need with date input? - by El Forum - 10-20-2008, 01:43 AM
need with date input? - by El Forum - 10-20-2008, 01:51 AM
need with date input? - by El Forum - 10-23-2008, 02:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB