close
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
    全站熱搜
    創作者介紹
    創作者 jmuko103 的頭像
    jmuko103

    2016台北年菜推薦 年菜食譜 , 年菜預購 , 年菜2015 , 年菜訂購 , 7 eleven年菜訂購 , 年菜宅配 , 年菜菜單 , 年菜推薦 , 年菜食譜大全 , 年菜2016 , 年菜外帶 , 外帶年菜 台中

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