doq1969 2011-03-08 09:41
浏览 102
已采纳

解析错误:语法错误,意外'。' (我疯狂地试图找到哪个点)[关闭]

There's seems to be an extra dot (or maybe one is missing) in the following code:

$html = '<h1>Edit - '. $Qpost->post_title .'<h1><form name="edit_q" id="edit_q" method="POST" action="">
    <input type="text" class="question-title-box" value="' . $Qpost->post_title; . '" id="question-title-box" name="title" onfocus="if(this.value == \'' . __("Enter Question Title",'qna-forum') . '\'){this.value = \'\';}" onblur="if(this.value == \'\'){this.value = \'' . __("Enter Question Title",'qna-forum') . '\';}" />
    <textarea class="question-box" cols="70" rows="20" id="question-box" name="question" onfocus="if(this.value == \'' . __("Enter Your Question Here",'qna-forum') . '\'){this.value = \'\';}" onblur="if(this.value == \'\'){this.value = \'' .__("Enter Your Question Here",'qna-forum') . '\';}">' . $Qpost->post_content . '</textarea>';
    $html  .= "<div class='question-form-bottom'>".__('Category','qna-forum').":<select name='category' id='category'>";
  • 写回答

3条回答 默认 最新

  • douxunnian0423 2011-03-08 09:43
    关注

    Your second line

    class="question-title-box" value="' . $Qpost->post_title; . '" id="question-title-box"
    

    Always good to use an editor like Eclipse (or any other code editor) when working because they highlight this stuff

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度