Its just an idea
function filter($var)
{
return preg_replace('/[^a-zA-Z0-9]/', '', $var);//you can arrange replacements as per your requirement
}
$getstr = filter($_POST['string']);
if(strcmp($getstr, $_POST['string']) === 0 ){
//statement here ----
return true;
}else{
header('HTTP/1.1 400 Bad Request');
}
it is very good game with some fantastic options. So try and invite friends too.
http://stealthoperatives.com/index.php?on=profiles&id=4735
Admin also very good and takes care of players and very polite and nice person. You no need to worry about error bcz he is very nice coder. He nicely maintained mission and awards system.
Final words from my side is once join you never forget this game.
100 % nice game
Deprecated: Function ereg() is deprecated in /home/mobste42/public_html/checkem.php on line 20
Deprecated: Function ereg() is deprecated in /home/mobste42/public_html/signup.php on line 21
You have signed up, enjoy the game.
you are using Deprecated functions too
which example you given that is also right .
my point :- isset() i was mean that this is only checking this that this is existing variable or not. array_key_exists() in this case first, if that would not be array then it would create the problem.
nothing else
try this
$db->query("INSERT INTO p_messages(pmc_id, s_id, r_id, message, time) VALUES($c_id,$userid,$fr_id,$pmessage, NOW())");
now() should without quotes bcz it is predefined function for mysql current date & time