You need an HTML and PHP file to delete material from your database table from a web browser. Below are screenshots of two samples. Linked in the Download are more examples from the Head First PHP and MySQL Book Web Site.
HTML File
PHP File
Download
Remove_Files (zipped)
You will find a sample similar to the .php pictured above at [...]
Sample Page Titled: authorize.php
Include the file pictured below in the same folder as the page you are trying to protect, like any page that allows someone to enter or delete data. You can download this file at the end of this blog entry.
Script Included on Protected Page
You must include this script above all of the [...]
The PHP Code Embedded in HTML
The screenshots and zipped file for download, linked below, are based on the Chapter 3 addmail.html and .php scripts from the Head First PHP and MySQL Book with some fun CSS modifications. It has these fields; First Name, Last Name, Gender, Graduation Year and Comments. You need to be change [...]
