Send time from html form to php -


i have form, saves date of birth in database. form passes 3 variables php: $ayear $amonth $adate need save these in database in format: 00/00/0000 (or 00/00/00, if 00/00/0000 not supported). need create date() variable, dont know how. examles on internet use time() or now() not usefull in case. can give me right function? thank time!

if you're using mysql you'll want save yyyy-mm-dd field type set date. i'd save variables value database.

$birthday = implode('-', array($year, $month, $day)); 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -