Hello!
What might be the problem here please ? I can only add data if the table is emnty, if there already is one row with data, no more are added ;-(
So, at most there is one row(the first added) of data in the table. (the first row works fine thou)
Thanks in advance
Klas
<?PHP
if ($submit) {
// process form
$db = mysql_connect("localhost", "root");
mysql_select_db("mydb",$db);
$sql = "INSERT INTO deltagare (namn,email,telefon,foretag,sponskemal,faddress) VALUES ('$namn1','$email','$telefon','$foretag','$sponskemal','$faddress')";
$result = mysql_query($sql);
echo "Thank you.\n";
} else{
<form>
-cut.........-
<INPUT TYPE="submit" name="submit" value="Send">
</form>
<?PHP
} // end if
?>