$request->has($key)

Checks if a value is available in the request data

  • return (boolean)
if(kirby()->request()->has('myvar')) {
  echo 'myvar has been submitted';
}

Is something missing or incorrect? Edit this page on Github…