MySQL Forums
Forum List  »  PHP

issue getting dates on form + adding to database
Posted by: Kat Mac
Date: November 18, 2016 08:22AM

Hi

I have created a form with a few date fields on it.

acord_date
eff_date
exp_date

When I enter in a date and then click the submit button, the dates
are displaying as 0000-00-00 no matter what date I enter on form.

Example of date input field:
<input type="text" name="App_Date" size=15 maxlength=20>

Here is my php code:
$dApp_Date = $_POST["App_Date"];

When I created the table, here is how I added in the date fields:
hdr_app_date DATE DEFAULT NULL,

I can't figure out what I have done wrong.

Options: ReplyQuote


Subject
Written By
Posted
issue getting dates on form + adding to database
November 18, 2016 08:22AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.