Okay here you go.
<?
// Connect to your database
$dbconnection = mysql_connect(server, username, password)
or die("Could not connect : " . mysql_error());
mysql_select_db(dbname)
or die("Could not select database");
// This section will process the form
$text = $_POST['text'];
if (!empty($text)) {
mysql_query("INSERT INTO table VALUES (\"".$text."\")");
}
// Draw the form
echo ("<form action=\"".$PHP_SELF."\" method=\"post\">
<input type=\"text\" name=\"text\">
<input type=\"submit\" value=\"Submit\">
</form>
");
?>
See if that helps you out.
Herk