i want to insert it in a database by taking from form
First you are in DaniWeb dont ever ask for any code. Ask your doubts.
Now for your problem
If you wanna user to choose a date then use following
you wanna current date of the system you can use Date function of php.
hope this will help you.
Thanks & Regards
Dilip Kumar Vishwakarma