Hallo, kan iemand aangeven waarom ik geen gegeven in mijn database komen?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<?php
?>
Informatie toevoegen:<br>
<form action="voegtoe.php" method="post">
Productnunner:<br><input type="text" name="productnummer" size="15"
maxlength="15"><br>
Productnaam:<br><input type="text" name="productnaam" size="50"
maxlength="15"><br>
Productgroepr:<br><input type="text" name="productgroep" size="15"
maxlength="15"><br>
Productprijs:<br><input type="text" name="productprijs" size="15"
maxlength="15"><br>
Productkeuze<br><select size="1" name="productkeuze">
<option value="extra geheugen*100">extra geheugen</option>
<option value="Lcd scherm*200">Lcd scherm 17</option>
</select><p><br>
<input type="submit" name="submit" value="Toevoegen">
</p>
</form>
<?php
if($submit) {
mysql_connect("localhost","root","beheerder");
mysql_select_db("pc_samenstellen");
$insert = "INSERT INTO tabel
(productnummer,productnaam,productgroep,productpri js,productkeuze)
VALUES
('$productnummer','$productnaam','$productgroep',' $productprijs','productkeuze')";
$query = mysql_query($insert) or die (mysql_error());
}
?>
Gr. Jan.

Likes:

Quote