0
0

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 3 years have passed since last update.

$_POST・$_GETの違い

Posted at

$_POSTと$_GETの違い

POSTは入力フォームから値をPHPに受け渡します。
GETはURLに含まれる値からPHPに受け渡します。

$_POST['変数名']
$_GET['変数名']

POST

新規追加・更新などに使われるHTMLのフォームから渡される。
結果をブックマークできない。

GET

一覧・詳細表示などに使われるURLにパラメータとして使われる。
結果はブックマークできる。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?