Hi All
I have my script working but then i add a new part and just can't get it to work
Title and Disc post fine to the sql db but when I try to make it post the current date and time just can't get it to work
In the file info.inc.php i have the date as $dataadded=date("d.m.Y H:i",$dates[$i]);
and in my input form file i have
include "info.inc.php"; to pull the date in
and the form code as follows
print "<html><form action='test2.php' method='POST'><table border=1 cellpadding=1 cellspacing=0>
<tr><td>Title</td><td><input type=text name=title size=30><br></td></tr>
<tr><td>Discription</td><td><input type=text name=discr size=40><br></td></tr>
<tr><td>Date</td><td><input type=text name=posted value=$dateadded><br></td></tr>
<tr><td>   </td><td><input type=submit value='submitme' name='submit'></td></tr>
</table></form></html>";
$title = $POST['title'];
echo "$title"."<br>";
$discr = $POST['discr'];
echo "$discr"."<br>";
$posted = $_POST['posted'];
echo "$posted";
this seems to be the line giving me the prob as the title and desc are input manualy but i and tring to add the date posted in to the same table as a auto for date and time ie 23-08-2005 10:04
were am i going wrong in this line
<tr><td>Date</td><td><input type=text name=posted value=$dateadded><br></td></tr>
???
Tks for the help