Re: Array transform date and put in a session

From: Date: Tue, 29 Jul 2003 21:39:54 +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-157443@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 22:15, lines prefixed by '>' were originally written by you. > Hi David, > Thanks for your reply... This makes no sense; > According to the rest of your code, it should be called datebirth, > not datebirth[]. > Let me put in the whole code <snip> Your $_POST array will be looking something like this... $_POST['datebirth']=array('xx-xx-xxxx','xx-xx-xxxx',...); So you will need something like this... foreach($_POST['datebirth'] as $thisdatebirth){ $date_array = split("-", $thisdatebirth); $mysqldate = $date_array[2]."-".$date_array[1]."-".$date_array[0]; } David. -- 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 (#157443) next »