subject

 

Source code

 

Problem solving  

$num=$_GET['num'];# get request

if(!is_numeric($num))  #is_numeric PHP function Judge whether the parameter is a number Make a close