php code to accept and delete incoming data

Posted on 16th Feb 2014 by admin

Using following HTML Code please show me how to write PHP code to accept and delete the incoming data entered through the form below. from the following MySQL database and table.
Database = hrms
Table = Student
Fields = StdNo(Number), Name(String), Address(String), Contact No(String)


Student No<Input type='text' name='txtStdNo' />

Name<Input type='text' name='txtName' />

Address<Input type='text' name='txtAdd' />

Contact No<Input type='text' name='txtTel' />

<input type='submit' name='cmdDelete' value='Delete' />
<input type='submit' name='cmdRetrieve' value='Retrieve' /
<input type='submit' name='cmdUpdate' value='Update' />
<input type='submit' name='cmdClose' value='Close' />

Other forums