Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
11-01-2013, 01:43 PM #1
- Join Date
- Aug 2013
- Thanked 0 Times in 0 Posts
html drop down list, edit select values
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:
<?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>