$userId = $_POST['user_id']; if (Validate::isUnsignedId($userId)) { echo "Valid User ID"; } else { echo "Invalid User ID"; }In this code snippet, we are receiving the user_id through a form post and using the Validate::isUnsignedId method to check if the value is valid. This method is part of the Validate class in the PrestaShop framework library.