konqest Posted May 14, 2008 Share Posted May 14, 2008 Hey Guys, have browsed through this site a lot for a lot of my answers and think all you guys are pretty great, thought I'd decide to join up as well. I am making a ticket system and on one of the inputs there is a text line. Now I have it so that it can recall the date from a previous issue, But I am having some difficulties with trying to get the text field to display today's date when they open a new ticket so they don't have to manually input the date every time someone makes a ticket. I have tried multiple things but nothing seems to be appearing in the text box. Any help will be appreciated. Code Snippet echo " /> <br/> <br/> Due Date (yyyy-mm-dd hh:mm:ss): <input type=\"text\" name=\"dueDate\" "; if($issue) echo "value=\"" . $issue["DueDate"] . "\" "; Thanks Link to comment https://forums.phpfreaks.com/topic/105620-solved-inserting-a-date-into-a-text-field/ Share on other sites More sharing options...
Barand Posted May 14, 2008 Share Posted May 14, 2008 $now = date('Y-m-d H:i:s'); Link to comment https://forums.phpfreaks.com/topic/105620-solved-inserting-a-date-into-a-text-field/#findComment-541120 Share on other sites More sharing options...
konqest Posted May 14, 2008 Author Share Posted May 14, 2008 Awesome! I added echo "value=\"" . $now = date('Y-m-d H:i:s') . "\" "; it works beautifully, thank you Link to comment https://forums.phpfreaks.com/topic/105620-solved-inserting-a-date-into-a-text-field/#findComment-541127 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.