htmlのフォーム内のcheckboxなどで、配列を扱いたい場合は、以下のように name 属性に [] をつけます。これで配列として扱えます。
<input type="checkbox" name="item[]" value="">
<input type="checkbox" name="item[]" value="">
<input type="checkbox" n…
htmlファイルでphpを動かすための.htaccessファイルの設定
.htaccessファイル内に以下の行を記述します。
AddType application/x-httpd-php .htm .html
当然の前提条件として、htaccessの動作が許可されているサーバに限ります。
graffiti on the web
この投稿へのコメント
コメントはまだありません。