[已解决]代码求解。

@Ta 2014-06-07 3243点击
<?php
/*
此代码由4nq.cn-MTG团队编写,授权使用务必保留。。。
*/
#模拟浏览器提交post
function curlpost($url,$data){
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_USERAGENT,'TTMobile/09.03.18/symbianOS9.1 Series60/3.0 Nokia6120cAP3.03');
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,$data);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$content=curl_exec($ch);
curl_close($ch);
Return $content;
}
#自定义添加内容
function check($qq,$str,$sid){
preg_match('/<a.*href=("|\').*sid=(.*)\\1.*>.*<\/a>/iU',$str,$sid);
Return "<div class='j'></div><div class='t'><div>QQ: </div><input type='text' value='{$qq}'/></div><div class='j'></div><div class='t'><div>SID: </div><input type='text' value='{$sid[2]}'/></div>
<div class='j'></div><div class='ok'>恭喜,获取SID成功<hr/>»";
}
?>


如何讲上部文件中获取的qq和sid数据提交到下部文件的输入框中?



<html><head><title>QQ空间自动赞赞</title><link rel='stylesheet' type='text/css' href='css.css'><link rel="shortcut icon" href="icon.png"/>
<link rel="bookmark" href="icon.png"/></head><body class='body'><form method='post' action='submit.php'>
<div class='b'>流星自动赞系统 qq空间自动赞</div>
<div class='a'>本站已移动国内服务器,速度快了</div>
<div class='b'>主站域名:52tw.pw</div>
点击链接加入我们: <a href='http://52tw.pw'> “学生娱乐交友网” </a>
<div class='b'> <a href='gy.html'> 关于自动赞赞的问题 </a></div>
<div class='a'>提交QQ</div>
QQ

<input type='text' name='qq' />

<?php

$sid=$_GET['sid']?$_GET['sid']:null;
echo "sid<a href='about.html'>[关于sid]</a><a href='getsid.php'>[自动提取]</a>
";
echo"<input type='text' name='sid' value='".$sid."'/>
";
?>
管理密码(设定该密码后,可以用该密码登录本程序管理你的QQ)

<input type='password' name='password'>


<input type='submit' name='submit' value='提交'/></form>
<div class='a'>
<?php
$file=file_get_contents('foot.php');
if(stristr($file,"Created by <a href='http://52tw.pw'>52tw.pw</a>")===false){
    
    die();
    
}

require'connect.php';
$count_sql="select count(*) from QQsign";
$count_result=mysql_query($count_sql);




$count_array=mysql_fetch_array($count_result);
$count=$count_array['count(*)'];
echo "共有<font color=red>".$count."</font>个QQ号加入了流星自动赞
";

if(!isset($_SESSION['qq'])){
echo "<a href='login.php'>[登录查询]</a><a href='admin/index.php'>[站长后台]</a>";
}else{
echo"<a href='manager.php'>[用户管理]</a>";}
?>
</div>
<script type="text/JavaScript">
document.write('<b>本站已稳定运行</b><font color=red>');
var urodz= new Date("8/24/2013");
var now = new Date();
var ile = now.getTime() - urodz.getTime();
var dni = Math.floor(ile / (1000 * 60 * 60 * 24));
document.write(dni);
document.write('</font>天');
</script>
<iframe width="468" height="25" frameborder="0" scrolling="no" src="http://www.cz88.net/ip/viewip468_25_utf8.aspx"></iframe>
<b>分享到:</b><a href="http://share.v.t.qq.com/index.php?c=share&a=index&url=http://52tw.pw/work&title=流星自动赞说说,日志地址http://52tw.pw"><img src="2.gif"/></a><a href="http://sns.z.qq.com/share?url=http://52tw.pw/work&title=流星自动赞说说,日志地址http://52tw.pw"> <img src="1.png"/></a> <script type="text/javascript">
(function(){
var p = {
url:location.href, /*获取URL,可加上来自分享到QQ标识,方便统计*/
desc:'', /*分享理由(风格应模拟用户对话),支持多分享语随机展现(使用|分隔)*/
title:'', /*分享标题(可选)*/
summary:'', /*分享摘要(可选)*/
pics:'', /*分享图片(可选)*/
flash: '', /*视频地址(可选)*/
site:'', /*分享来源(可选) 如:QQ分享*/
style:'101',
width:96,
height:24
};
var s = [];
for(var i in p){
s.push(i + '=' + encodeURIComponent(p||''));
}
document.write(['<a class="qcShareQQDiv" href="http://connect.qq.com/widget/shareqq/index.html?',s.join('&'),'" target="_blank">分享到QQ</a>'].join(''));
})();
</script>
<script src="http://connect.qq.com/widget/loader/loader.js" widget="shareqq" charset="utf-8"></script>
<br> 有问题请点击<a href="mailto:872125493@qq.com">发邮件</a>反馈!<br>
<?php require'foot.php';?>
回复列表(8|隐藏机器人聊天)
添加新回复
回复需要登录