krijg gegevens niet in mysql , wat doe ik fout?
script:
script:
PHP:
<html>
<head>
<title>registratie</title>
<?php
if (isset($_POST['submit'])) {
$con = mysql_connect('localhost', 'root', 'root');
if (!$con){
die( "Can not connect: " . mysql_error());
}
mysql_select_db("registratie",$con);
$sql = INSERT INTO `registratie`(`email`, `Voornaam`, `Achternaam`, `Woonplaats`, `Leeftijd`) VALUES ([value-1],[value-2],[value-3],[value-4],[value-5])
mysql_querry($sql,$con);
mysql_close($con);
}
?>
<style type="text/css">
div {
border-bottom:1px solid #efefef;
margin: 10px;
padding-bottom; 10px;
width: 260px;}
title {
float: left;
width: 100px;
text-align: right;
padding-right: 10px;}
radio-buttons label {
float: none;}
submit{
text-align: right;}
input{
float: right;}
select{
float: right;}
</style>
<form action ="registratie.php" method="post">
<div>
<label for="email"clas="title">E-mail:</label>
<input type="text" id="email" name="email"/>
</div>
<div>
<label for="Voornaam"clas="title">Voornaam:</label>
<input type="text" id="Voornaam" name="Voornaam"/>
</div>
<div>
<label for="Achternaam"clas="title">Achternaam:</label>
<input type="text" id="Achternaam" name="Achternaam"/>
</div>
<div>
<label for="Woonplaats"clas="title">Woonplaats:</label>
<input type="text" id="Woonplaats" name="Woonplaats"/>
</div>
<div>
<label for="Leeftijd"clas="title">Leeftijd:</label>
<select>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option/>
</select>
</div>
<input type="submit" value="Verzenden"> <input type="reset" value="Reset!"/>
</div>
</form>
</html>
Laatst bewerkt door een moderator: