Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert a PHP date into HTML Text Box

Status
Not open for further replies.

Sitehelp

Technical User
Joined
Feb 4, 2004
Messages
142
Location
GB
Hi all!

Any ideas how I insert a PHP date function as:

<?php $today = date('d-m-Y');
print &quot;$today&quot; ?>

into an html text box?????? it is in a form that submits all the boxes together in to one record in a database. Cheers!
 
actually ignore that I have it working now, for anyone intersted just insert the PHP into the HTML for the text box as:

value=&quot;<?php echo &quot;$today&quot;; ?>&quot;

for example.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top