MTMD-又是小明小惠小萍網站 Logo
小明之友: Guest ; 群組: Guest
sun 今日上站: 2,390 ( 昨日上站:14,661rain 總上站數: 20,513,254
整點 [ 4 ] 連線: 183
目前逗留的有
文章搜尋 關於MTMD-又是小明小惠小萍網站 返回 [ MTMD-又是小明小惠小萍網站 ]主頁 互動訪客留言板
系統時間: 西元 2010 年 8 月 1日 04 點 17 分 38 秒  
訂閱 RSS
MTMD-又是小明小惠小萍網站 的留言板

folder MTMD-又是小明小惠小萍網站
folder 學習手扎文件區
│├folder HTML 技術記錄區
││└folder_move [HTML]使用 GET 方法傳值時 "&" 符號所產生的問題與解決方式
回覆主題前請先登入 發表新主題前請先登入
Go Previous [HTML]自動分頁列印語法 :: Go Top :: [HTML]檢驗您的 HTML 與 CSS 是否符合世界標準吧!! Go Next
[HTML]使用 GET 方法傳值時 "&" 符號所產生的問題與解決方式
├[ post: 2005-06-18 00:05:53 ] [ Read 2258 times now!! ]
└[ 小明冷涼卡好 ; 發表文章: 3909 篇 ; 註冊日期: 2002-12-25 ]
his90-TWShip.png

內容顯示: ( 圖文顯示模式:一般模式 )
Ampersands (&"2;s) in URLs

Another common error occurs when including a URL which contains an ampersand ("&"):

...

This example generates an error for "unknown entity section" because the "&" is assumed to begin an entity. In many cases, browsers will recover safely from the error, but the example used here will cause the link to fail in Netscape 3.x (but not other versions of Netscape) since it will assume that the author intended to write §ion, which is equivalent to §ion.

To avoid problems with both validators and browsers, always use & in place of & when writing URLs in HTML:

&
section=2">...

Note that replacing & with & is only done when writing the URL in HTML, where "&" is a special character (along with "<" and ">"). When writing the same URL in a plain text email message or in the location bar of your browser, you would use "&" and not "&". With HTML, the browser translates "& a m p ;" to "&" so the Web server would only see "&" and not "& a m p ;" in the query string of the request.

----------------------------------------------------------- Signature
好命去蹉跎!! 好命!! 好命!! 真好命~~~~
Back To Top ^
email home ipLogged
Link:
回覆主題前請先登入
Power By PHPPower By MySQL Valid HTML 4.01! Valid CSS!
PHP Writer Powered By Sean Chen ( 小明 )
© '02 - 2010, (lstar-MTMD-SYMing). All Rights Reserved. Version:1.2
最佳瀏覽環境 1024 × 768 ( 適用 Firefox, Opera, Safari, Google Chrome, IE )
Power By Apache Get Firefox!
How much time we take:0.17004585266113 ( Back To Top ^ )

free counters