td> < ;td align="left" width="76">.com .cn .tel <입력 이름=" ext[]" type="checkbox" id="ext" value="mobi">.mobi <입력 이름= "ext[]" type="checkbox" id="ext" value="net" check="">.net .org .asia .me <입력 이름="ext[ ]" type="checkbox" id="ext" value="net.cn">.net.cn .org.cn .gov.cn . hk .tv .cc .info .공사 .网络 .中國 复代码php代码: //得到顶级域name $ext=$_POST['ext'] ; //得到 2세대 이름 $dns = $_POST['dns']; //print_r($ext); //$ 도메인 = $dns . "." . $ext[0]; //echo $domain; //遍历所유적 이름 foreach($ext를 $value로) { // 결합 이름 $domain = $dns . "." . $value; //查询: echo $domain ; $do = "http://panda.www. net.cn/cgi-bin/check.cgi?area_domain=" . $domain; $xml_data = file_get_contents($do); $result_arr = (배열) simplexml_load_string($xml_data); $returncode=$result_arr['returncode ']; $key=$result_arr['key']; $original=$result_arr['original']; $status= substr($original ,0,3); if($status=="210"){ echo ":恭喜您,可以注册"; }else if($ status=="211"){ echo ":已经注册"; }else if($status=="212"){ echo ":参数错误"; } echo ''; } ?> 复代码