不是啊 其实我是PHP菜鸟 我以前弄JAVA的 JS代码能搞定 我只想知道 如何得到指定回帖的内容~~~

解决方案 »

  1.   

    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;
    }