Re: Array transform date and put in a session

From: Date: Tue, 29 Jul 2003 21:02:22 +0000
Subject: Re: Array transform date and put in a session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157435@lists.php.net to get a copy of this message
Hello, This is a reply to an e-mail that you wrote on Tue, 29 Jul 2003 at 21:42, lines prefixed by '>' were originally written by you. > Hi All, > Can you please help me with the following: > I've got a form with a field called datebirth[]; According to the rest of your code, it should be called datebirth, not 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? -- phpmachine :: The quick and easy to use service providing you with professionally developed PHP scripts :: http://www.phpmachine.com/ Professional Web Development by David Nicholson http://www.djnicholson.com/ QuizSender.com - How well do your friends actually know you? http://www.quizsender.com/ (developed entirely in PHP)

« previous php.general (#157435) next »