[attachment=4247:example_php_code.zip]
The admin.php page has a form that displays data from a database, which can be edited. When submitted, the data is sent to the admin_action.php page, which simply updates the database with the changed data. The script then redirects back to the admin.php page using the header() function and the admin.php page displays the contents of the database, which has been changed. However, you don't have to redirect the user from an action script, you can display HTML on that same page too, or even do both depending upon what the user has entered (but note that the header function must come before any HTML code is sent to the browser).
The key of the $_REQUEST array is what becomes of the name you gave to the form element. For example:
<input name="something" type="file">
You would then access the variable like this:
if (isset($_FILES['something'])) { // Stuff to do with the uploaded file }
$_FILES is used with uploaded files, $_REQUEST is used for any other kind of data ($_POST and $_GET could also be used, but $_REQUEST takes care of both). More info about predefined variables here: http://www.phpbuilde...d.variables.php