Re: [PHP] Using switch() to process a set of forms

2005-03-07 Thread Greg Dotts
Sure enough Kirk! That was it. Seems strange that you can set a name/value pair on the tag, but they aren't used. Guess they were just kidding ;-) Greg Greg Dotts wrote: Sure enough Kirk! That was it. Seems strange that you can set a name/value pair on the tag, but they aren&#

[PHP] Using switch() to process a set of forms

2005-03-07 Thread Greg Dotts
die (mysql_error()); break; case "addletter": //Get the form variables $lgroup = $_POST['lgroup']; $lname = $_POST['lname']; $content = $_POST['lcontent']; //Insert form data into the database $query = "INSERT INTO letters SET lgroup='$lgroup', lname=