I have these 2 forms. They are supposed to work with the php script to add a name to my mailing list, then view a name on request and delete it from the list. They aren't working yet and my entire project is waiting on this getting fixed. Can someone help?
The delete function is suppose to show up on the new window the name is viewed in.
Here is the php script:
<?php
###################################### ## Form is submitted to this file ## ######################################
require_once('includes/class.database.php');
$function_to_perform = $_POST['do']; if (!isset($_POST['do'])) {
$function_to_perform = $_GET['do'];
} $db = new Database;
switch($function_to_perform) { case "Add": $db->AddName($_POST['Name']); echo $_POST['Name']." Was Added To The Database"; echo "<br/><a href='?do=View'>Click Here To View Oldest Entry</a>"; break;