Jump to content

[SOLVED] get current time


homer.favenir

Recommended Posts

hi,

can anyone please tell me how to get the current time using checkbox or radiobutton?

my code is

<form action= "<?php $_SERVER['PHPSELF'] ?>" method="post" enctype="multipart/form-data" name="formtime">
<input name="start" type="text" id="start" readonly="readonly" value="<?php echo $_POST['time']; ?>"/>

<input name="time" type="checkbox" onClick="GiveDateTime()" value="checkbox" id="time" />
</form>
<?php echo $_post['time']; ?>

the input text should output the current time when the checkbox is checked.

 

please

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/112014-solved-get-current-time/
Share on other sites

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.