Version: v0.6.1 - Beta.  We welcome contributors & feedback.  THanks!


Input.remote($httpMethod, $fieldName, $validationRule)


Get an input field sent in the request for the given $httpMethod ('get' or 'post').

This method allows requests from outside the local domain, without a CSRF token.

The value will be validated per $validationRule. (See Input Validation)

// post data: { userId: 12345, age: 39 }

Input.remote('post', 'userId', 'id');
//= 12345

See Also