Hi...
I'm trying to set up a display that has a forum button as the way to delete a contact from a database. What I have so far is this:
The display block itself -
$display_block ="
<font size=2><b>$name</b> - $address<input type=submit value=Delete? name=$name>";
and the delete code itself -
$name = $_GET[name];
$sql = "DELETE FROM $table_name WHERE name = '$name'";
$result = @mysql_query($sql, $connect) or die(mysql_error());
What I'm getting is basically a NULL value when I click the delete button. How do I pass the variable $name through to the next page with a button so the delete function can see it to delete it?