//check if sender account has enough money to send
$totalmoney = mymoney($_SESSION['auto_id']);
if ($totalmoney < $amount){
$msg = "Error: Sorry you do not have enough money to send $ $amount";
$_SESSION['sess_msg'] = $msg;
header("location: $SITE_PATH?p=account.money&r=$receiver");
exit;
}
This checks that the user sending fake money to another user on my site has enough money in there account, the problem that users found is if they send a -negative amount it puts that amount into there own account. so if I have 1,000$ and I try to send -70,000$ it makes my account have 71000$ any help would be greatly appreciated