Forum Moderators: coopster

Message Too Old, No Replies

PHP Form Calendar?

         

tonynoriega

7:21 pm on May 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a lead registration form on my site that my agents use to input leads.....

I have a "Lead Capture Date" field that they manually enter a date the lead was first captured....

Now i am requested to have a "Calendar" that they would like to select the date visually.... one of those little javascript calendars...

My question is, how can i use one of these to automatically populate the field with the calendar, in the proper format for my backend MySql database, which the field type is set to "DATE" formatted as such:
YYYY-MM-DD

IanKelley

8:15 pm on May 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The calender you're referring to will be 100% client side, javascript/DOM can easily populate the field.

In this case PHP's only role will be taking the data, validating it, and putting in your database.