Stupid Delete Function
Ok, I have a type of backend. There is a "Sign Up" form on the main page, after it is submitted, the info gets processed and sent into a row. The rows are displayed on the admin page. In the admin page, there is a "Delete user" function. In which you delete a user by the website title (WebName in the table). So, here is the tad PHP scrip that processes the navigation:
PHP:<?php
if ($deluser) {
$Host = 'localhost';
$User = 'CENSORED';
$Pass = 'CENSORED';
$DBName = 'CENSORED';
$Table = 'NewUsers';
$Connect = mysql_connect ($Host, $User, $Pass);
mysql_select_db($DBName);
$Delete = "DELETE from $Table WHERE WebName = $DeleteName";
$Result = mysql_query($Delete);
echo ('<font>User Deleted, Please Refresh</font>');
mysql_close ($Connect);
} else {
if ($_GET['id'] == 'delete') {
echo ('<br />
<form method="post">
<font><b>Enter Website Name:</b></font> <input type="text" name="DeleteName" /> <input type="submit" name="deluser" value="Delete" />
</form>
');
} elseif ($_GET['id'] == 'howto') {
echo ('<font>
<b>The URL:</b> http://blizter.net/Website Name/ <i>(NO SPACES)</i>
</font>');
} elseif ($_GET['id'] == 'usedn') {
echo ('<font>
Blizter
</font>');
} else {
echo ('<font><b>No Action Selected</b></font>');
}
}
?>
Ok, basically, the elseif's and the else do not matter at this point. The top form, and the thing to process it is. I have tried so many combinations, but they don't seem to work, some dont process, some do, but dont delete the user.
Anyhelp? Thanks... 
___________________


