suve

awful: function: post-is

Declaration

bool :post-is ( string $NAME )

Summary

Check if field with given name was present in POST data.

Example

# POST example; website expecting a file upload.
!if :not :post-is s'file'
    :page-error s'You must provide a file.
    !fi

wikistrona zmodyfikowana 2014/0601/2317