如何用在PHP论坛中实现引用直接到快速回复栏 不是啊 其实我是PHP菜鸟 我以前弄JAVA的 JS代码能搞定 我只想知道 如何得到指定回帖的内容~~~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if ($action=="quote"){ if($article==0){ $atcarray=$tpcarray; } else{ !is_numeric($pid) && showmsg('illegal_tid'); $atcarray = $db->get_one("SELECT author,subject,ifsign,postdate,content FROM pw_posts WHERE pid='$pid'"); } $ifsign=$atcarray['ifsign']; $old_author=$atcarray['author']; $replytitle=$atcarray['subject']; $wtof_oldfile=get_date($atcarray['postdate']); require_once GetLang('post'); $old_content=stripslashes($atcarray['content']); $old_content=preg_replace("/\[hide=(.+?)\](.+?)\[\/hide\]/is",$lang['hide_post'],$old_content); $old_content=preg_replace("/\[post\](.+?)\[\/post\]/is",$lang['post_post'],$old_content); $old_content=preg_replace("/\[sell=(.+?)\](.+?)\[\/sell\]/is",$lang['sell_post'],$old_content); $old_content=preg_replace("/\[quote\](.*)\[\/quote\]/is","",$old_content); if(strpos($old_content,$db_bbsurl)!==false){ $old_content=str_replace('p_w_picpath',$picpath,$old_content); } //这是我论坛中的源代码 教教我怎么写一个可以用在这段JS代码中的get_quote.php就好了 get_quote.php要获得回复的内容function quote(a,b,c){document.form1.content.focus();document.form1.content.value+='';document.form1.content.value+="\r\n\r\n";document.form1.content.focus();return false;} 请问这二层嵌套if语句最后一部分怎会失效? 关于文档发布系统 php2版本与php3版本的区别 IIS PHP 虚拟目录 求个PHP域名正则 仿淘宝PHP+MYSQL版多用户商城系统 PHP中,一个类的属性可以是另一个类嘛? 请问可以将网页页面保存为word文档输出吗? PHP短连接怎么做 wampserver 多站点配置 报404错误 想和大家讨论一下php的定界符输出! 没分了.这是什么错误呀......急死了...
if($article==0){
$atcarray=$tpcarray;
} else{
!is_numeric($pid) && showmsg('illegal_tid');
$atcarray = $db->get_one("SELECT author,subject,ifsign,postdate,content FROM pw_posts WHERE pid='$pid'");
}
$ifsign=$atcarray['ifsign'];
$old_author=$atcarray['author'];
$replytitle=$atcarray['subject'];
$wtof_oldfile=get_date($atcarray['postdate']);
require_once GetLang('post');
$old_content=stripslashes($atcarray['content']);
$old_content=preg_replace("/\[hide=(.+?)\](.+?)\[\/hide\]/is",$lang['hide_post'],$old_content);
$old_content=preg_replace("/\[post\](.+?)\[\/post\]/is",$lang['post_post'],$old_content);
$old_content=preg_replace("/\[sell=(.+?)\](.+?)\[\/sell\]/is",$lang['sell_post'],$old_content);
$old_content=preg_replace("/\[quote\](.*)\[\/quote\]/is","",$old_content); if(strpos($old_content,$db_bbsurl)!==false){
$old_content=str_replace('p_w_picpath',$picpath,$old_content);
}
//这是我论坛中的源代码 教教我怎么写一个可以用在这段JS代码中的get_quote.php就好了 get_quote.php要获得回复的内容function quote(a,b,c){
document.form1.content.focus();
document.form1.content.value+='';
document.form1.content.value+="\r\n\r\n";
document.form1.content.focus();
return false;
}