The problem I have is that when I have entered the information i need into the fields below, the fields seem not to actually hold any information, and therefor all I get is empty entries.
I am no expert at MySQL and PHP, but I cannot see the problem as there are no errors and I think I have declared everything correctly.
Any help is greatly appreciated, it's going to help in my battle to rid our work of ASP '😃'
<html>
<body>
<form method="post" action="<?php echo $PHP_SELF?>">
Name:<input type="Text" name="namefield"><br>
age:<input type="Text" name="agefield"><br>
email:<input type="Text" name="emailfield"><br>
<input type="Submit" name="submit" value="Enter information">
</form>
<?
$db = mysql_connect("localhost", "gary", "*****");
mysql_select_db("test",$db)
or die("Unable to execute query:<br>$sql<br>Error: " . mysql_error());
$sql = "INSERT INTO wibble (name,age,email)
VALUES ('$namefield', '$agefield', '$emailfield')";
$result = mysql_query($sql)
or die("Unable to execute query:<br>$sql<br>Error: " . mysql_error());
mysql_close($db);
?>
</body>
</html>