W3School 裡的 XHTML Syntax 裡提到所有的 name attribute 都被 id 取代了,但事實上 php 只吃 name attribute 啊...

翻了一下都沒有相關討論,我也只能歸納出"除了表單用的element之外都不能用name"這個結論了。

Posted by 沒力小僧 at 痞客邦 PIXNET 留言(2) 引用(0) 人氣()


open trackbacks list Trackbacks (0)

留言列表 (2)

Post Comment
  • jeffhung
  • id 是 client side 跑 DOM 時用的,name 是 form submit 到 cgi 時,server side 用來區分欄位用的。
  • Manic
  • 原來如此,難怪W3C不提name,而PHP也不提id...

You haven’t logged in yet, please use guest status to leave message. You can also log in with above service account and leave message

other options