i am moving a site of one server onto another, both hosted by godaddy. However the receiving server seems to be significantly more picky. Hence some of the definited global variables were done below in attempt to get this page functioning as there were other issues.
require "connect.php";
if ($_GET['do'] == 'delete') {
$_POST['id'] = $id;
$sql = "DELETE FROM `users` WHERE id=$id ";
if (@mysql_query($sql,$db)) {
echo "User has been Deleted! | <a href='admin.php'>Administration</a>";} else { echo"Error";}
} else {
if ($_GET['do'] == 'add') {
if ($_GET['post'] == 'go') {
$_POST['name'] = $name;
$_POST['user'] = $user;
$_POST['pass'] = $pass;
$_POST['level'] = $level;
$add_item="INSERT INTO `users` (``,`name`,`username`, `password`, `type`) VALUES ('','$name', '$user', '$pass', '$level')";
mysql_query($add_item,$db);
echo "Added Successfully | <a href='admin.php'>Administration</a>"; } else {
?>
Neither one of the above functions work with the both being submitted by form now url.
Any held would be greatly appreciated