RE: [PHP] 3 entries going into 1 field

2003-06-01 Thread Randum Ian
$EnteredDate = $date . / . $month . / . $year;

This would output DD/MM/ if $date = DD, $month = MM and $year =
.

-Original Message-
From: Vicky [mailto:[EMAIL PROTECTED] 
Sent: 31 May 2003 15:06
To: PHP List
Subject: [PHP] 3 entries going into 1 field

Hi,

I have a registration form, but I would like to add a Date of Birth
section. Now, because of the different formats of writing it I want to
have 3 seperate drop down boxes, Date, Month and Year.

However, I then want those 3 dropdowns to go into one field in a mySQL
database, in DD/MM/ format.

How can I acheive this, in simple language as I'm a newbie to this stuff
^_~

Thanks!
Vicky



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] 3 entries going into 1 field

2003-06-01 Thread Cal Evans
have 3 select boxes bdMonth, bdDay, bdYear.

Then when processing the $_POST, simply contact them in the format you want.

$bdString = $_POST['bsMonth'].'/'.$_POST['bsDay'].'/'.$_POST['bsYear'];

HTH,
=C=
* Cal Evans
* http://www.christianperformer.com
* Stay plugged into your audience
* The measure of a programmer is not the number of lines of code he writes
but the number of lines he does not have to write.
*

- Original Message -
From: Vicky [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]
Sent: Saturday, May 31, 2003 9:05 AM
Subject: [PHP] 3 entries going into 1 field


Hi,

I have a registration form, but I would like to add a Date of Birth section.
Now, because of the different formats of writing it I want to have 3
seperate drop down boxes, Date, Month and Year.

However, I then want those 3 dropdowns to go into one field in a mySQL
database, in DD/MM/ format.

How can I acheive this, in simple language as I'm a newbie to this stuff ^_~

Thanks!
Vicky


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php