[請益] 請問一下 這樣寫的問題

看板PHP作者 (托兒所嬰兒)時間19年前 (2007/02/10 23:14), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
<?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" "" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="" rel="nofollow">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)

02/10 23:19, , 1F
注意一下雙引號!把「不該出現」的雙引號用\逸脫。
02/10 23:19, 1F

02/10 23:22, , 2F
謝謝 我成功了 原來是這個問題
02/10 23:22, 2F
文章代碼(AID): #15pU5ShD (PHP)
文章代碼(AID): #15pU5ShD (PHP)