| PHP ・・・ャ≪・/TH > | ||
|---|---|---|
| ・・・・若墁/A > | 罨<・・若墁/A > | |
PHP・・TML・・訓・・≫・・・・・障鐚PHP・・TML・・・・・HTML・・・HP・・篆・ ・・・・ ・宴荐菴違・・・・障・ 篁ヤ・・・AQ・茯㏍・・・・・・・c・A HREF="language.variables.external.html" > PHP・・・・・・・ャ紊・乿/A >・・緇・・・・・茯㏍・с・・・・・荀・с・ ・・・・・ャ≪・・・・・・・・・・≪・・・箴・・・・障・ register_globals・・・潟・・・・・・ 羈・・・・c・・・・・
・・潟潟若・・荀・・・・顔≪・・・ゃ・・・障・ string $data・・・・・潟潟若・・ ・・・・・絖・・・若帥羝<・翫・・ゃ・・・・・帥・・・
HTML・・・・・検・・翫鐚 ・絖・・・・・・・・・ゃ・・障・・・・ ・・・・・с・・若帥・SPAN CLASS="emphasis" >綽 ・htmlspecialchars・茵・・ ・・・・・・若・у蚊障・・・違・・障・・
URL・・・・・検・・翫: URL・・・・ゃ・・・若・・・・腴・<障・ ・・・・若帥・・・・若・・・<・・・ゃс・・・В・・・・・・・・違 urlencode()・с・潟潟若・・・・ ・違・・障・・
羈・: $data・urlencode()・・・・ ・・・・障・・・・・・・・・・・罐㏍・・・・吟・算・・・・・・・・・ ・・筝・・・・・・・・・・・・・・・吟・③・・・・・・・茵・c・ ・・障・・・・・・・・・・<純・(GET・POST)・篏・с・・・・・ ・・・・・・・・・・・・・・・・・・・・ゃ・・・・・・・・・・・・・ ・ャ・・・ET・・・・鴻・・・・・・・・・с・・・・・・・POST・・ ・・・鴻・・ 絎鴻・絽悟・・Е・・・・・・<・・・с・
羈・: ・・・・吟・・鴻宴若・・・・激潟・・茹i・・・・сdata・・・潟 ・・・・・・;腓冴・・障・
・・・若・・ 絎鴻・篆<・・・・GET・POST・・・・・・・data・・ ・・・吟・・c・RL・・潟潟若・・・PHP・・・c・RL・・潟若・・・・ ・・荀・・URL・・潟潟若/・・潟若・・・・ц・・綽 荀・・・・・・・ ・・・・・ ・・・・・・・・・・・・・・・・・・с・
羈・: ・・・・・с・絎・・ET・・・・鴻・・御・・・・障・・・・・・data ・・・・・A HREF="function.urlencode.html" >urlencode()・・綽 荀・・・・障・
羈・: ・・・・RL・htmlspecialchars()・・綽 荀・・・・障・ ・・・・・・・・RL・・TML・・alue絮・с・・・宴・・・・・с・・・・ ・翫・・・・・・吟・障htmlspecialchars()・・・・・・ ・帥・・・祉・・・・・URL・羝<・障・URL・・ urlencode()・・・・・・・сPHP・・・・罩c ・茹i・・・・・・с・障・
URL筝㏍・VAR CLASS="literal" >&・& ・・舟・・・・・・・・・・・・・・ャ・с・・・・・・・・・・・・綽 ・・・・・祉・・・・・・・吟・ ・・祉・・・・障・・綽 ・・・・・・ ・・・・・・・・障・・・сURL・・・・・・・眼・・・・・с・・・ URL・・A HREF="function.htmlspecialchars.html" >htmlspecialchars()・・・・鴻 ・с・
2. <input type="image">・帥違篏帥・・・・・・・・с・・紊・・ $foo.x・・foo.y・篏帥・障・・・・・・・違・・・с・鐚
篁ヤ・・・・・・帥違篏帥・違罔羣・・・帥潟・撮・・・・糸・篏睡・・・ ・・・若・・篆<・・・・・с・障鐚
<input type="image" src="image.gif" name="foo"> |
PHP・с・foo.x・・foo.y・・・・・・・・・医・・・・③・・・・・・с・・ ・・・âfoo_x・・foo_y・・・・・・・・・・・・障・荀・・・・・・・・・ ・潟・若鴻潟≪・舟・・・・・・・・・・・・・・с・ So, you'd access these variables like any other described within the section on retrieving variables from outside of PHP. For example, $_GET['foo_x'].
・・・若・・ 絎鴻PHP・鴻・・・・・A HREF="language.types.array.html" >・・・・・・・・・・・・ <input>, <select> or <textarea>・・・c荀膣・・ame・篁・ 筝・・・・・絎・・障鐚
<input name="MyArray[]"> <input name="MyArray[]"> <input name="MyArray[]"> <input name="MyArray[]"> |
<input name="MyArray[]"> <input name="MyArray[]"> <input name="MyOtherArray[]"> <input name="MyOtherArray[]"> |
<input name="AnotherArray[]"> <input name="AnotherArray[]"> <input name="AnotherArray[email]"> <input name="AnotherArray[phone]"> |
羈・: HTML・・ ・・・㏍若・絎・・・・・・・・・宴с・・㏍若・絎・・・・・ ・・翫・・・・若・・障・・・・・・激・ゃ・・・障・・・・・・・・・ ・㏍若・, 1, 2, 3・・・・障・
・・・∽乿/A >・・ PHP・・・・・・・ャ紊・・ ・・・с・・・・・・
"select multiple"・帥違篏帥・・・・若吟・・鴻・・茲・違・ ・・・・ ・・・・・・・с・・・・・・・障・・御・・・・ ・・・・・若・・ action・ф絎・・・・・潟・・・検・・・障・・蕁・・・・・・・ゃ・・・ ・・・・・ф検・・・・・・с・・ゃ障・
<select name="var" multiple> |
var=option1 var=option2 var=option3 |
<select name="var[]" multiple> |
JavaScript・篏帥c・・・翫・・・・若荀膣・・・膣・・篏帥c・荐恰絵鐚 document.myform.myelement.value膈・・・・å・≪・祉鴻・・・・・・・ 荀膣・・・・障・[]・・蕁・・・・・・・・・・・ 羂・・ゃ・・・・・・・・・翫・・・医・・ц;・・・・・・若荀膣・・D・ 篏睡・・・・・激潟違・・・若・ц・膣・・・蚊・с・・若荀膣・・ ・・・ ・ゃ潟・・・鴻・・・≪・祉鴻・・・・・・箴・・違篁ヤ・・・・・・・障鐚
variable = documents.forms[0].elements['var[]']; |
Javascript・・・・・・・・・・・ゃ≪潟・泣ゃ・茵・с・筝・娎HP・・・・・・・・ ・泣若・若泣ゃ・茵・с・・障HTTP・・・鴻・若・・鴻À・・㏍・潟・с・ ・・・・・・・・・・ゃ・・茯・・・ゃ・・・・・・違・掩・・・・・・с・障・・
・・・・・・・・・・・・ゃ・・茯・・・у・・違羝<・・・・・純с・ 筝・ゃ・号・・・HP・・・膩・ĺavascript・・潟若・・・・・ ・・・・吟・・・・・・・・・激ワ・・・㏍若鐚・・・・・・с・ 篁ヤ・・・・・・障・・・・сPHP・・脂≪・・・・・・・茯茘・・・・・障・ ・・・・絽吾・・・ゃ≪潟・泣ゃ・с・・с・・・・・с・
<?php
if (isset($_GET['width']) AND isset($_GET['height'])) {
// output the geometry variables
echo "Screen width is: ". $_GET['width'] ."<br />\n";
echo "Screen height is: ". $_GET['height'] ."<br />\n";
} else {
// pass the geometry variables
// (preserve the original query string
// -- post variables will need to handled differently)
echo "<script language=\"javascript\">\n";
echo " location.href=\"${_SERVER['SCRIPT_NAME']}?${_SERVER['QUERY_STRING']}"
. "&width=\" + screen.width + \"&height=\" + screen.height;\n";
echo "</script>\n";
exit();
}
?> |
| ・・・・若墁/A > | ・・若 | 罨<・・若墁/A > |
| PHP・篏帥 | 筝・・祉 | PHP・・OM |