In the following code I have a drop down list with a date/time stamp echoed inside the list. The date/time stamp is defaulted to that particular days date and time. But what I would like to do is say when I select the job accepted option in the list I want to be able to edit the date and the time by simply clicking on it and then key in the desired date or time.
Any help would be greatly appreciated thanks:
Code:
<?php
date_default_timezone_set('Europe/London');
$datestamp = date('d/m/Y h:i:s a', time());
?>
<html>
<head>
</head>
<body>
<select id="status"> 
<option value="Please Select">Please Select</option>
<option value="Job Accepted <?php echo $datestamp;?>" >Job Accepted <?php echo $datestamp;?></option>
</select>
</body>
</html>