ik hoop dat jullie hier mij een beetje kunnen helpen
wat ik al heb:
<?php
//Error reporting
error_reporting(E_ALL);
//Database connectie
mysql_connect("localhost", "hardcore_test", "*********") or die (mysql_error());
mysql_select_db("hardcore_test") or die (mysql_error());
// Als er op Toevoegen is geklikt
if(isset($_POST['Submit']))
{
mysql_query("INSERT INTO muziek (artiest, naam, type, cds) VALUES ('".$_POST['artiest']."','".$_POST['naam']."','".$_POST['type']."','".$_POST['cds']."')") or die(mysql_error());
echo "<b>Succesvol toegevoed!</b><br>Klik <a href='muziek.php'>hier</a> om de lijst te bekijken.<br>";
}
?>
<h2>Toevoegen</h2>
<form method="post" action="<?php $_SERVER['PHP_SELF']; ?>">
<table width="400" border="0" cellspacing="5" cellpadding="0">
<tr>
<td width="100" align="left">Artiest:</td>
<td><input name="artiest" type="text" size="40"></td>
</tr>
<tr>
<td width="100" align="left">Naam:</td>
<td><input name="naam" type="text" size="40"></td>
</tr>
<tr>
<td width="100" align="left">Type:</td>
<td><select name="type">
<option selected>Album</option>
<option>Vinyl</option>
<option>Live-set</option>
</select></td>
</tr>
<tr>
<td width="100" align="left">Aantal cd's:</td>
<td><select name="cds">
<option selected>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Toevoegen"></td>
</tr>
</table>
</form>