세상이야기

PHP, $_REQUEST , $_GET and $_POST

쿠카곰돌이 2016. 1. 8. 17:04
반응형
$temp = $_REQUEST['s'];

or

if (isset($_GET['s'])) {
  $temp = $_GET['s'];
}
else {
  $temp = $_POST['s'];
}


$_REQUEST, by default, contains the contents of $_GET$_POST and $_COOKIE.

반응형