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

Input.isPost

Input.isPost()

Description

Returns true if the current request method is post (e.g. a form was submitted).

if Input.isPost() {
    $userName = Input.post('userName');
    print('Welcome, ' ~ $userName);
}

See Also