Re: [請益] 關於document.的資料型態

看板PHP作者 (晃阿晃阿)時間16年前 (2009/06/08 15:35), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串3/7 (看更多)
※ 引述《michaelclow (好多事...)》之銘言: : ※ 引述《fabdawn (晃阿晃阿)》之銘言: : <form name=kc method='post' action='index.php' onSubmit=" : if ( document.kc.username.value != "<?=$_SESSION['username']?>" || : document.kc.password.value != "<?=$_SESSION['password']?>" ){ : alert('帳號密碼錯誤'); : return false; : clearAll(); : } : return true; : "> : 應該是這樣吧 我剛剛試了一下結果跑出如下 " || document.kc.password.value != "" ){ alert('帳號密碼錯誤'); return false; clearAll(); } return true; "> 然後還是沒有判斷到 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.216.142

06/08 15:58, , 1F
根本沒有 Session 的 username 跟 password 吧.
06/08 15:58, 1F

06/08 16:08, , 2F
我在下面echo過 確定有
06/08 16:08, 2F
文章代碼(AID): #1ABBynx2 (PHP)
文章代碼(AID): #1ABBynx2 (PHP)