| | |
Field default value
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
[PHP]
<?php
$script_dt = date('Y-m-d'); //Modify formatting for your needs.
?>
<input type="text" name="userdate" value="<?= $script_dt ?>" />
[/PHP]
See http://us2.php.net/manual/en/function.date.php for more about date formatting.
<?php
$script_dt = date('Y-m-d'); //Modify formatting for your needs.
?>
<input type="text" name="userdate" value="<?= $script_dt ?>" />
[/PHP]
See http://us2.php.net/manual/en/function.date.php for more about date formatting.
![]() |
Similar Threads
- Default Values of Text Field (JavaScript / DHTML / AJAX)
- Changing default save as field in IE 6 ... (Windows NT / 2000 / XP)
- Users management (PHP)
- Email newsletter (Growing an Online Community)
- Default value of a column (MS SQL)
- insert datetime into the database (C#)
- Change the Default Opening Folder in Windows Explorer (Windows tips 'n' tweaks)
Other Threads in the PHP Forum
- Previous Thread: Deleting a foreign cookie
- Next Thread: Problems in Dynaform (Form Mail) URGENT HELP
| Thread Tools | Search this Thread |
advanced apache api array basics beginner binary broken cakephp check checkbox class cms code codingproblem combobox cookies cron curl database date datepart display dynamic echo email error file files folder form forms function functions google head href htaccess html image include includingmysecondfileinthechain insert ip javascript job joomla js limit link login mail menu mlm mobile multiple mysql nodes oop outofmemmory paging parse password paypal pdf php problem procedure query radio random recursion remote script search server sessions smarty sms source space sql stored syntax system table traffic tutorial unicode up-to-date update upload url validation validator variable video web webapplications youtube





