一个从别的网站抓取信息的例子(域名查询)

文件十一:searchform.tml FORM METHOD=POST ACTION=[SCRIPT_NAME] INPUT
NAME=domain SIZE=25 MAXLENGTH=57/tdtd valign=top [EXT_HTML_LIST]
/td/trtrtd valign=top colspan=2 input type=submit value=Search input
type=reset value=Clear /FORM 文件十二:searchmain.tml
p欢迎使用本站提供的域名查询程序。p请输入您想查询的域名并选择其扩展域名(例如
.com,.net, .org, 等等.).P你也可以使用我们为您提供的 A
href=[SCRIPT_NAME]?do_wizard=1域名申请向导/A来帮助您选择一个合适的域名。
P你也可以使用我们提供的 A
href=[SCRIPT_NAME]?do_global=1域名查询系统/A.P/FONT P CENTER FORM
action=[SCRIPT_NAME] method=post TABLE border=0 TBODY TR TD TABLE
border=1 TBODY TR TD TABLE border=0 cellPadding=3 TBODY TR TD colSpan=3
vAlign=topFONT face=ARIAL size=-1请 输 入 域 名:/FONT/TD/TR TR TD
vAlign=centerINPUT maxLength=57 name=domain/TD TD align=middle
vAlign=centerFONT size=+3./FONT/TD TD align=leftFONT face=ARIAL
[EXT_HTML_LIST] /FONT/TD/TR TR TD align=middle colSpan=3INPUT
type=submit value=提交 INPUT type=reset value=清除
/TD/TR/TBODY/TABLE/TD/TR/TBODY/TABLE/TD/TR/TBODY/TABLE/FORM P/CENTER
文件十三:wizard.tml p欢迎使用本站提供的域名注册向导,
此向导可以帮助你申请到比较好的域名。p你输入下列信息后注册向导将为你产生建议域名,请你仔细选择有价值的域名使用。P单击
A href=[澳门新葡亰娱乐官网,SCRIPT_NAME]这里/A 返回域名查询。 P FORM
action=[SCRIPT_NAME] method=post input type=hidden name=do_wizard
value=1 TABLE border=1 cellPadding=5 cellSpacing=5TBODY TRTD
align=rightFONT face=Verdana,Arial,Geneva size=2输入您的名称:
/FONT/TDTDFONT face=Arial,Geneva size=2INPUT
name=company/FONT/TD/FONT/TR TRTD align=rightFONT
face=Verdana,Arial,Geneva size=2输入您的描述: /FONT/TDTDFONT
face=Arial,Geneva size=2INPUT name=keyword1/FONT/TD/TR TRTD
align=rightFONT face=Verdana,Arial,Geneva size=2输入其他描述:
/FONT/TDTDFONT face=Arial,Geneva size=2INPUT
name=keyword2/FONT/TD/TR/FONT TRTD align=rightFONT
face=Verdana,Arial,Geneva size=2选择域名后缀: /FONT/TDTDFONT
face=Verdana,Arial,Geneva size=2[EXT_HTML_LIST] /FONT/TD/TR TRTD
align=middle colSpan=2INPUT type=submit value=提交 INPUT type=reset
value=消除/TD/TR /TBODY/TABLE /FORM/FONT

reply.php(用来回复主题) HTMLHEADTITLE疑难问题/TITLE LINK
href=mypic/style.css rel=STYLESHEET type=text/css/HEAD ?php if
(!$cook_user) {echo script language=’javascript’;echo
parent.location.href=’index.php’;echo /script;} else {include
(connect.inc.php); $query = select * from my_user where
user=’.$cook_user.’ and password=’.$cook_password.’;$res =
mysql_query($query);if (!$res) {echo script language=’javascript’;echo
parent.location.href=’index.php’;echo /script;} include connect.inc.php;
if ($content) {$content= str_replace (
‘,mysinglequotes,$content);$content=htmlspecialchars($content);
$content=nl2br($content); $query = INSERT INTO guestbook
(name,type,content,icon,time_open,time_close,answer_count,answer_name,main_id)
VALUES
(‘.$cook_user.’,0,’.$content.’,.$icon.,now(),now(),1,’.$cook_user.’,.$theme_id.);$res
= mysql_query($query); if ($res){$query = update guestbook set
time_close=now(),answer_count=answer_count+1,answer_name=’.$cook_user.’
where id=.$theme_id;$res = mysql_query($query);if ($res) {echo script
language=’javascript’;echo parent.location.href=’post_end.php’; echo
/script;}}}} ? SCRIPT language=JavaScript !– var submitcount=0;
function check_com(){ if(document.form.theme.value.length ==0){
submitcount–; alert(主题不能为空!nYou must supply a subject.); return
false; } if(document.form.content.value.length == 0){ submitcount–;
alert(加贴内容不能为空!nYou must supply a message.); return false; }
return true; } //– /SCRIPT BODY bgColor=#cccc99 bottomMargin=0
leftMargin=0 topMargin=0 marginwidth=0 marginheight=0 form method=post
action=reply.php name=form onSubmit=return check_com() SCRIPT
language=JavaScriptsrc=mypic/x.js/SCRIPT TR TD vAlign=top TABLE border=0
cellPadding=4 cellSpacing=0 width=100% TBODY TR TD class=mid
width=20%回复主题BRBR/TD TD class=midA
class=titlehref=read.php?theme_id=?php echo $theme_id ? ?php$query =
select theme from guestbook where id=.$theme_id; $res =
mysql_query($query);$row = mysql_fetch_row($res);echo $row[0]; ?
/ABRBR/TD/TR TR TD class=mid vAlign=top表情图标/TD TDINPUT CHECKED
name=icon type=radio value=1 IMGalign=ABSCENTER
height=18src=mypic/icon1.gifwidth=18INPUT name=icon type=radio value=2
IMGalign=ABSCENTER height=18src=mypic/icon2.gifwidth=18INPUT name=icon
type=radio value=3 IMGalign=ABSCENTER
height=18src=mypic/icon3.gifwidth=18INPUT name=icon type=radio value=4
IMGalign=ABSCENTER height=18src=mypic/icon4.gifwidth=18INPUT name=icon
type=radio value=5 IMGalign=ABSCENTER
height=18src=mypic/icon5.gifwidth=18INPUT name=icon type=radio value=6
IMGalign=ABSCENTER height=18src=mypic/icon6.gifwidth=18INPUT name=icon
type=radio value=7 IMGalign=ABSCENTER
height=18src=mypic/icon7.gifwidth=18BRINPUT name=icon type=radio value=8
IMGalign=ABSCENTER height=18src=mypic/icon8.gifwidth=18INPUT name=icon
type=radio value=9 IMGalign=ABSCENTER
height=18src=mypic/icon9.gifwidth=18INPUT name=icon type=radio value=10
IMGalign=ABSCENTER height=18src=mypic/icon10.gifwidth=18INPUT name=icon
type=radio value=11 IMGalign=ABSCENTER
height=18src=mypic/icon11.gifwidth=18INPUT name=icon type=radio value=12
IMGalign=ABSCENTER height=18src=mypic/icon12.gifwidth=18INPUT name=icon
type=radio value=13 IMGalign=ABSCENTER
height=18src=mypic/icon13.gifwidth=18INPUT name=icon type=radio value=14
IMGalign=ABSCENTER height=18src=mypic/icon14.gifwidth=18/TD/TR TR TD
class=mid vAlign=topinput type=hidden name=theme_id size=12
class=stedit value=?php echo $theme_id ? 加贴内容/TD TDTEXTAREA cols=50
name=content rows=6/TEXTAREA /TD/TR TR TD/TD TDINPUT name=submit
onclick=return checkSubmit() type=submit value= 发 表 INPUT name=reset
type=reset value= 清 除 /TD/TR /FORM TR TD colSpan=2BRBRFONT
color=#797979 LI本主题最后 5 个帖子 /FONT/LI/TD/TR/TBODY/TABLE TABLE
bgColor=#000000 border=0 cellPadding=4 cellSpacing=1width=100% TBODY TR
bgColor=#666666 TD width=10%FONT color=#ffffff作 者/FONT/TD TD
width=90%FONT color=#ffffff内 容/FONT/TD/TR ?php $query = select *
from guestbook where main_id=.$theme_id. or id=.$theme_id. order by
time_open DESC limit 5 ; $res = mysql_query($query);function
TdBackColor() { static $ColorStr; if ($ColorStr==#ededed) {
$ColorStr=#dedede; } else { $ColorStr=#ededed; } return($ColorStr); }
for ($i=1;$i=5;$i++) {$row = @mysql_fetch_array($res);if (!$row)
break;$ColorStr=TdBackColor(); echo TR bgColor=.$ColorStr.; echo TD
vAlign=top.$row[‘name’]./td;$content= str_replace (
mysinglequotes,’,$row[‘content’]);echo td.$content./td/tr;}
?/TBODY/TABLE /TBODY/TABLE /FORM /html

? if (isset($xx)) {
$dodo=@file($fqdn.&domain=.$domain.&root=.$root.&cdomain=2.7); $i=0;
while($dodo[$i]) { echo $dodo[$i]; $i++; } exit; } ? ? if
(isset($submit)) { if ($domain==) { echo 请输入域名; exit; }
$dom=@file($domain.&root=.$root); $dom1=substr($dom[13],19);
$dom1=chop($dom1); switch($dom1) { case 对不起!该域名已被注册/FONT:
for($i=0;$i32;$i++) { #i echo $dom[$i]; } ? CENTER FORM METHOD=POST
ACTION=? echo $PHP_SELF; ? INPUT TYPE=hidden NAME=fqdn VALUE=? echo
$domain.$root ? INPUT TYPE=hidden NAME=domain VALUE=? echo $domain.$root
? INPUT TYPE=hidden NAME=root VALUE=? echo $root ? INPUT TYPE=submit
VALUE=显示域名注册的详细信息 name=xx /FORM /CENTER? exit; break; case
对不起!您所输入的是域名名称错误/FONT: $i=0; while($i42) { echo
$dom[$i]; $i++; } $i=51; while($dom[$i]){ echo $dom[$i]; $i++; }
exit; break; case 恭喜您:该域名还未被注册过,可供注册/FONT: ? HTML HEAD
TITLE国际域名注册查询结果/TITLE /HEAD BODY BGCOLOR=#FFFFFF CENTER TABLE
BORDER=0 CELLPADDING=3 WIDTH=75% TRTD TABLE BORDER=0 CELLPADDING=3
WIDTH=100% TR TD BGCOLOR=#000000 FONTCOLOR=#FFFFFF SIZE=3
SIZEFACE=Arial,宋体恭喜您:该域名还未被注册过,可供注册/FONT BR /TD /TR
/TABLE BRBR /TD/TR TR TD BLOCKQUOTE span style=font-family: Arial Black;
font-size: 25pt2/span span style=font-family: 宋体; font-size: 9ptFONT
FACE=Arial,宋体 SIZE=-1
您所查询的国际域名strongdjdjdjdd.com/strong尚未被注册。您可以注册该域名。
/span 您可继续查询其它可注域名。 /FONT /BLOCKQUOTE pp P /BODY /HTML ?
exit; break; } } ? form method=POST action=? echo $PHP_SELF; ? input
type=hidden name=cdomain value=2.7input type=hidden name=lookup
value=OKtable cellpadding=0 border=0 width=100% cellspacing=0 tr
align=center td valign=middle input name=domain size=10 maxlength=256
font size=+1select name=root size=-1 option value=com.com/option option
value=net.net/option option value=org.org/option /select /fontbr br
input type=submit value=国际域名查询 name=submit /td /tr /table /form

You can leave a response, or trackback from your own site.

Leave a Reply

网站地图xml地图