2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PHPの$_GETと$_POST

2
Last updated at Posted at 2014-10-22

$_GET

(PHP 4 >= 4.1.0, PHP 5)

  • $_GET -- $HTTP_GET_VARS [非推奨] — HTTP GET 変数
  • URLパラメータで現在のスクリプトに渡された変数の連想配列です。
  • リンク先のパスに「?」以降の内容
  • [&]で複数受け渡し

$_POST

(PHP 4 >= 4.1.0, PHP 5)

  • $_POST -- $HTTP_POST_VARS [非推奨] — HTTP POST 変数
  • HTTP POST メソッドで現在のスクリプトに渡された変数の連想配列です。
  • フォームの名前に『[]』を使うと、PHP上では配列として格納される
  • SQLインジェクションを防ぐが可能
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?