Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決 
Build - Release - Deploy

Automate your build process. Integrates with 50+ Dev tools.
From our sponsors
PHP 執行錯誤
Aug 19th 2013, 04:26

每次執行一直跑出這段錯誤
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

因為是在測試所以很簡陋 請高手為我解答一下
程式
text2.php (這部分都沒問題)

<html>
<title>登入畫面測試</title>
<body>
<form action="text2-1.php" method=post>
帳號<input type=text name=name size=10><p>
密碼<input type=text name=pass size=10><p>
<input type=submit value="enter">
</form>
</body>
</html>

text2-1.php

<?php
$na = $_POST['name'];
$ps = $_POST['pass'];
$mm = fopen ("c:\\Apache2\\htdocs\\name\\$na.txt",'r');
$ch = fgets($mm);
echo "$ps<p>$ch<p>";
if($na != null && $ps != null && $ps == $ch){
echo"登入成功";}
else{echo"登入失敗";}
fclose($mm);
?>

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 jmuko104 的頭像
    jmuko104

    new htc one開箱,htc手機評價,htc手機比較,htc手機遊戲,htc手機維修,htc手機價位,htc手機推薦,htc手機鈴聲,中華電信htc手機,htc手機截圖,亞太htc手機,

    jmuko104 發表在 痞客邦 留言(0) 人氣()