$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';
}