I want to be able to add details from my web page to my database but not sure how to do this?
The page where the details are entered:
<FORM action="thescript.php" method="post">
<P>
<LABEL for="operational_type">New Requirement Type: </LABEL>
<INPUT type="text" name="operational_type"><BR>
<INPUT type="submit" value="Add New Type">
</P>
</FORM>
The page they are sent to (thescript.php):
$some_string= mysql_real_escape_string ($_POST['operational_type']);
$res= mysql_query ("INSERT INTO require (rtid,require_txt) VALUES ('1','$some_string')");
Any ideas? Pleeeeeease.