html - Layout of PHP form needs altering -
part of code:
echo "<form method ='post' action='nextfile.cgi'>"; echo "<table>"; echo "<tr><td>date: </td></td> <input type='date' name='date' value =".$record['date']." autofocus required='required' /></td></tr>"; echo "<tr><td>time: </td></td> <input type='time' name='time' value=".$record['time']." autofocus required='required' /></td></tr>"; echo "</table>"; echo "<input type='submit' name='submitname' value='save' />"; echo "</form>";
$record
related mysql query.
when running code in web browser, 2 input boxes displayed side side.
below characters />
below 'date:' below 'time:'
i trying alter code date:
beside date input box, , same time below.
how can it?
the main problem </td></td>
should </td><td>
$date = $record["date"]; $time = $record["time"]; <form method ="post" action="nextfile.cgi"> <table> <tr><td>date: </td><td><input type="date" name="date"$date" autofocus required="required"/></td></tr> <tr><td>time: </td><td><input type="time" name="time"$time" autofocus required="required"/></td></tr> </table>" <input type="submit" name="submitname" value="save" /> </form>
Comments
Post a Comment