In scrape.php edit the
pickSteamURL function to check for a valid id and return an error code or redirect to an error page
js code:
private function pickSteamURL($userID) {
//put check in for $userID here
if (is_numeric($userID)){
return "http://steamcommunity.com/profiles/" . $userID;
} else {
return "http://steamcommunity.com/id/" . $userID;
}
}