Magento collect Date of birth from php form and insert into DB


/ Published in: PHP
Save to your folder(s)

Insert that into the database as a string. The example would give you the format 2011-01-28


Copy this code and paste it in your HTML
  1. $dob = date('Y-m-d',strtotime($_POST['dob']));

URL: http://stackoverflow.com/questions/4812194/how-to-collect-date-of-birth-from-php-form-and-insert-into-mysql

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.