Ok, I'm just starting out with PHP/HTML/and MYSQL. I am hosting my own server and for some reason Every time I submit data though php using this script. It always skips the first field and leaves it blank, and then puts the data in the second field. Then when I try to echo the data out that I just submitted out on my main page it gives me large gaps, this I do not want... Here is my submit code...
$link = @mysql_connect ($server, $username, $password)
or die (mysql_error());
if (!@mysql_select_db("homepage", $link)) {
echo "<p>There has been an error. This is the error message:</p>";
echo "<p><strong>" . mysql_error() . "</strong></p>";
echo "Please Contant Your Systems Administrator with the details";
}
$Name=$POST['Name1'];
$Date=$POST['Date1'];
$News=$_POST['News1'];
$sql = mysql_query("INSERT INTO Info SET
Name = '$Name',
Date = '$Date',
news = '$News'");
mysql_close($link);
?>
Also I am submiting the data though forms. Anyone see any problem with my code?