True, Daniel - I will.
I'm trying to look at doing a test of an updateable area with gerrygerrys *hellashisly * organized code to help me learn this. I first copied that code exacly darnit [other than changing the last break on the switch statements on the index.php pg to an endswitch and a ' ; ' to a ':' after ' add '] - but I'm getting an error (and I was getting the error before I started trying to touch any of his code):
Parse error: parse error, expecting `T_CASE' or `T_DEFAULT' or `'}'' in /usr/local/etc/httpd/htdocs/prologi/editbox/index.php on line 4
Pretty much same code as above - but I shall post it in case I did something dumb and don't realize it:
<?
require("vars.php"

; // for database connection vars
switch ($todo) {
case "add":
// display a blank form
$title = "Add New Entry"; // used by header
require("header.php"

; // your page header
require("add.php"

; // submits to index.php?todo=save
require("footer.php"

; // your page footer
break;
case "edit":
// pull the data from db and plugs into form
$title = "Edit Existing Entry"; // used by header
require("header.php"

; // your page header
require("edit.php"

; // edits $editid, submits to index.php?todo=update
require("footer.php"

; // your page footer
break;
case "delete":
require("delete.php"

; // deletes $deleteid from the db
header("Location: index.php"

; // go to listing
break;
case "save":
require("save.php"

; // add new entry to db
header("Location: index.php"

; // go to listing
break;
case "update":
require("update.php"

; // update the db where id=$id
header("Location: index.php"

; // go to listing
break;
default:
$title = "Viewing All Entries"; // used by header
require("header.php"

; // your page header
require("list.php"

; //show all entries
require("footer.php"

; // your page footer
endswitch;
}
?>
-L