$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';
}
Checks if a value is available in the request data
if(kirby()->request()->has('myvar')) {
echo 'myvar has been submitted';
}