Page 2 of 2

Posted: Wed Nov 07, 2007 5:14 pm
by Benjamin
WOWEEE you guys look for solutions to problems that don't exist. The OP asked how to securely validate an id, which is usually an integer, through a get request..

Code: Select all

$thread_id = (isset($_GET['thread_id']) && preg_match('#^\d{1,10}$#', $_GET['thread_id'])) ? $_GET['thread_id'] : null;