How to add time in mysql database from a textbox.

<form name="addTime" action="<?php echo $SERVER['PHP_SELF']; ?>" method="post">
<input type="text" name="time" />
<input type="submit" name="enterTime" />
</form>