Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 03-22-2005, 09:28 AM Date in echo / input
feraira's Avatar
BeTheBand!

Posts: 350
Trades: 0
echo("<input name=\"date\" value=\"date(\"d - n - y\")\">");


In the input box that only shows "date(" thats it.. i dont want that i want it to show the date in that format, can anyone help?
feraira is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-22-2005, 09:33 AM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
Try this:
PHP Code:
echo("<input name=\"date\" value=\""date("d - n - y") . "\">"); 
Or, to make it a bit cleaner:
PHP Code:
$tdate date("d - n - y");
echo(
"<input name=\"date\" value=\"$tdate\">"); 
Anacrusis is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Date in echo / input
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09548 seconds with 12 queries