Any ideas how I insert a PHP date function as:
<?php $today = date('d-m-Y');
print "$today" ?>
into a database. It is in a form that submits a number of boxes together into one record within the DB. The date displays fine on the first page using the above code, when you click submit, however, it says that the text box cannot be null. I have the date appearing in the text box using the following code:
value="<?php print "$today" ?>"
Any ideas why it wont recognise any text when submitting it???????????? All the names are correct within the code, I have double checked i.e. it is looking at the correct text box. Cheers for this, this is important to running my site correctly!
<?php $today = date('d-m-Y');
print "$today" ?>
into a database. It is in a form that submits a number of boxes together into one record within the DB. The date displays fine on the first page using the above code, when you click submit, however, it says that the text box cannot be null. I have the date appearing in the text box using the following code:
value="<?php print "$today" ?>"
Any ideas why it wont recognise any text when submitting it???????????? All the names are correct within the code, I have double checked i.e. it is looking at the correct text box. Cheers for this, this is important to running my site correctly!