Jump to content


This topic is now archived and is closed to further replies.


Making One Value From Many

Recommended Posts

Currently developing a GUI where my client can add important dates to their calendar. The info. is stored in a MySQL table where the field attribute is set to DATE.

I have 3 select boxes. 1 for the Month, 1 for the Day and 1 for Year. When submitted, I need to make their choices into one; international date format.

Here is what I have so far:

[code]$impdate = $_POST['impyear'] . $_POST['impmonth'] . $_POST['impday'];[/code]

Let's say they have April 1 2006 selected. As my script stands, when echo'd it produces the following:


My PROBLEM: How do I get the dashes in there also so MySQL recognizes it as a valid date format:


My gratitude ahead of time!

Share this post

Link to post
Share on other sites
You are the...PERSON!

My gratitude for helping me learn...(bows gracefully)

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.