看板 PHP 關於我們 聯絡資訊
不好意思要問一個非常新手的問題: 原始html碼: <input name="button1" type="button" onclick="this.form.action='full_event_update.php';this.form.submit();" value=" 更新"> 現在要用echo印出: echo "<input name='button1' type='button' onclick="this.form.action='full_event_update.php';this.form.submit();" value=' 更新' >"; 但是這樣寫是錯的,請問各位板友正確的寫法? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.251.27.24
yanli2:echo " 裡面有["]這個符號的話要改成[\"]讓他跳脫 " 04/13 19:58
yanli2:onclick=\" this.form.submit();\" 04/13 19:59
kuramax77:原來如此!!可以work!!感謝y大的幫助!!! 04/13 20:01
AizawaYuichi:使用'代替"就好了 04/13 21:08
yanli2:他內文裡面也有' 意思一樣 04/13 21:53
AizawaYuichi:喔喔沒看到有三層 04/13 22:54