Add result.php and its function.