Array transform date and put in a session

From: Date: Tue, 29 Jul 2003 20:42:31 +0000
Subject: Array transform date and put in a session
Groups: php.general 
Request: Send a blank email to php-general+get-157426@lists.php.net to get a copy of this message
Hi All, Can you please help me with the following: I've got a form with a field called datebirth[]; After submitting the form; it must put the datebirth field (or fields) into the mysql format yyyy-mm-dd and after that put it in a session: $date_array = split("-", $_POST['datebirth']); $mysqldate = $date_array[2]."-".$date_array[1]."-".$date_array[0]; $_SESSION['datebirth'] = array(); $_SESSION['datebirth'] = $mysqldate; This is my code till now but i'm stuck (when proccesing it i'm only getting Array... as output).. Can someone help me? Regards, Frank

« previous php.general (#157426) next »