But what do I replace it with? How do I get the value from the field on the form into the php code ? I've tried $_POST_VARS[] but that doesn't work either.
TIA
Wayne
<html>
<body>
<?php
$Description = $HTTP_POST_VARS['Description'] or die("Could not set variable");
@ $db = mysql_pconnect('localhost', 'root', 'cilegon');
mysql_select_db('ansi');
$query = "insert into ansi values ('".$Description."')" or die("Could not execute query");
echo mysql_affected_rows().' ANSI inserted into database.';
?>
</body>
</html>
<html>
<body>
<FORM action="Insert_ANSI.php" method="post">
<TABLE>
<TR>
<TD><INPUT id="Description" type=text name="Description"></TD>
</TR>
<TR>
<TD><INPUT type="SUBMIT" value="Press me"></TD>
</TR>
</TABLE>
</FORM>
</body>
</html>