15,067
edits
m (→執行PHP時顯示原始碼的錯誤: add [http://www.commandlinefu.com/commands/view/818/phpinfo-from-the-command-line phpinfo from the command line | commandlinefu.com]) |
m (→使用者操作/使用者輸入的內容) |
||
| Line 12: | Line 12: | ||
* 空值 | * 空值 | ||
* 包含特殊符號 ex: 單引號 ', 雙引號 ", > < <== 對策: [http://www.php.net/manual/en/function.htmlentities.php PHP: htmlentities - Manual] | * 包含特殊符號 ex: 單引號 ', 雙引號 ", > < <== 對策: [http://www.php.net/manual/en/function.htmlentities.php PHP: htmlentities - Manual] | ||
* 內容的前後有空白 <== 對策: [http://php.net/manual/en/function.trim.php PHP: trim] 或 jQuery [http://api.jquery.com/jQuery.trim/ $.trim('string')] | * 內容的前後有空白 <== 對策: [http://php.net/manual/en/function.trim.php PHP: trim] 或 jQuery [http://api.jquery.com/jQuery.trim/ $.trim('string')] | ||
* 超出預期的內容長度 | * 超出預期的內容長度 | ||
* 重複的內容 ex: Excel 欄位重複 | * 重複的內容 ex: Excel 欄位重複 | ||
* (可勾選多個項目的狀況下) 指勾選了單一項目或者沒有勾選項目,就送出(submit) | * (可勾選多個項目的狀況下) 指勾選了單一項目或者沒有勾選項目,就送出(submit)表單資料 | ||
* (如果允許輸入多行文字) 包含換行符號 | |||
使用者操作 | 使用者操作 | ||