Jump to content

[SOLVED] Inserting a date into a text field


konqest

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.