i made the most simple input system to add info into my DB… but it does’nt work… what the hell did i do wrong???
(my DB)
id int(40) No auto_increment
naam varchar(30) No
omschrijf mediumtext No
(my script (occ_uitvoer.php)
if ($submit)
{
//* Database connection *//
mysql_connect($MyHost, $MyLogin, $MyPass);
mysql_select_db($MyDb);
$auto_naam = $_POST['naam'];
$auto_omschrijf = $_POST['omschrijf'];
$query = "INSERT INTO $MyTable(naam,omschrijf) VALUES ('$naam ','$omschrijf')";
mysql_query($query) or die(mysql_error());
}else{
?>
<form method="post" action="occ_uitvoer.php">
<input name="naam " id="naam" type="text" size="30" >naam<br>
<textarea name="omschrijf" cols="50" rows="20"></textarea>omschrijving (max 500 tekens)<br>
<p>
<input type="submit" name="submit" value="Add"> <input type="reset" name="Reset" value="Reset">
</form>
<?
}
?>
what is wrong with this??? :wasted: