insert.php page
<body>
<h1>Insert Form</h1>
<p>This will be used to insert fields to the database</p>
<form name="insert_form" method="post" action="insertprocess.php">
t ID: <input name="testID" type="text" disabled><br>
t Name: <input name="testNAME" type="text"><br>
<button type="submit" name="submit">Submit</button>
</form>
</body>
</html>
insertprocess.php page
<?php
include("config.inc.php");
mysql_query("INSERT INTO test (test_ID, test_NAME) VALUES ('".$_POST['test_ID']."','".$_POST['test_NAME']."')");
?>
This is the error I get.
Notice: Undefined index: test_ID in C:\inetpub\wwwroot\Test\insertprocess.php on line 4 Notice: Undefined index: test_NAME in C:\inetpub\wwwroot\Test\insertprocess.php on line 4