<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script> chkadmin.php的源代码如下:
<?php
class chkinput{
%声明一个类chkinput
var $name;
var $pwd;
%两个属性name和pwd
function chkinput($x,$y)
{
$this->name=$x;
$this->pwd=$y;
}
%函数chkinput:初始化类的两个属性
function checkinput()
{
include("../conn/conn.php");
%将conn.php包含进来
$sql=mysql_query("select * from tb_admin where name='".$this->name."'",$conn);
%查询数据库
$info=mysql_fetch_array($sql);
%根据查询字符串获得结果,存放在info变量中