[!--quoteo(post=354578:date=Mar 13 2006, 12:41 PM:name=kenrbnsn)--][div class=\'quotetop\']QUOTE(kenrbnsn @ Mar 13 2006, 12:41 PM) [snapback]354578[/snapback][/div][div class=\'quotemain\'][!--quotec--] I would add some error checking and a minimal amount of data screening: [code]<?php $title=mysql_real_escape_string($_POST['title']); mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); if ($_POST['date'] != '') { $tmp = strtotime($_POST['date']); if ($tmp == -1) date = '0000-00-00'; else $date = date('Y-m-d',$tmp); } else $date = '0000-00-00'; $entry=mysql_real_escape_string($_POST['entry']); $query = "INSERT INTO blog VALUES ('','$title','$date','$entry')"; mysql_query($query) or die('Problem with insert query: ' . $query . '<br />' . mysql_error()); ?>[/code] The date checking code will allow your users to input any valid date. (not tested) Ken [/quote] cool I'll add what you mentioned and see what I end up with.