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']));


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.