Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決 
Kindle Book Deals

We find the best deals on best-selling Kindle books for you. Just tell us which genres you love and we'll do the rest. The best part? It's completely free!
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
    全站熱搜
    創作者介紹
    創作者 kkoki0httzobg 的頭像
    kkoki0httzobg

    線上遊戲排行榜2013/2014,進擊的巨人線上看,candy crush saga外掛,正妹寫真三圍

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