Date and time in php

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 44
Joined: Tue May 28, 2013 10:04 pm
Location: India,Lucknow

Mon Jun 03, 2013 9:07 am

<form name="addTime" action="<?php echo $SERVER['PHP_SELF']; ?>" method="post">
<input type="text" name="time" value="<? echo date('l, F j, Y ')."&nbsp;".date ("h:i:s") ?>" />
<input type="submit" name="enterTime" />

Here is the code friend

developerahusain. Any other problem do revert

New php-forum User
New php-forum User
Posts: 72
Joined: Wed Jun 12, 2013 9:30 pm

Thu Jun 13, 2013 10:51 pm

establish connection with database.
then take the value in text box in variable $time=$_REQUEST["time"];
then using insert query insert data into database.

Post Reply