看板 PHP 關於我們 聯絡資訊
<?php class recomment { public function guestRecomment() { echo "<form action="act.php" name="DemoForm" >"; echo "<input type="text" name="UserName" value="">"; echo "<input type="text" name="RealName" value="" readonly>"; echo "<input type="submit">"; echo "</form>"; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=big5" /> <title>無標題文件</title> </head> <body> <?php $a=new recomment(); $a->guestRecomment(); ?> </body> </html> -- 請問一下 這樣寫哪邊有問題 怎麼跑不出來 可以請各位前輩幫我看一下嗎 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.216.142.217 ※ 編輯: yorjing 來自: 61.216.142.217 (02/10 23:16)
yudian:注意一下雙引號!把「不該出現」的雙引號用\逸脫。 02/10 23:19
yorjing:謝謝 我成功了 原來是這個問題 02/10 23:22