Vil ikke indsætte
Kan I se nogen grund til at skidtet ikke vil indsætte?<?php
if($submit){
if(navn !="" && nick !="" && email !=""){
$db = mysql_connect("pcnerds.dk", pcnerds, xxxx) or die ("Kunne ikke connecte");
mysql_select_db(pcnerds, $db) or die ("Kunne ikke connecte til tabel");
mysql_query("INSERT INTO members (navn,nick,email) VALUES ($navn,$nick,$email)") or die ("Kunne ikke indsætte");
echo "du er nu registreret";
}}
else{
?>
<html>
<body>
Du skal indtaste tre ting for at registrere dig som bruger.
<form method="post" action="<?php $PHP_SELF ?>">
Indtast dit navn <br>
<input type="text" name="navn"><br>
Indtast dit nick <br>
<input type="text" name="nick"><br>
Indtast din email adresse <br>
<input type="text" name="email"><br>
<input type="submit" value="OK!" name="submit">
<input type="reset" value="Slet lortet">
</body>
</html>
<?php } ?>
