O.P. RE: Bug in MsgPluslive.net voting
intval
This will work. Simply takes the interger value of the $_POST['vote'] and checks if it is the same as the normal value. If its not then there is a point.
if ($_POST['vote'] < 0 || $_POST['vote'] > 5 || intval($_POST['vote']) != $_POST['vote']) {
echo "Error with voting";
die();
}
|