25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nero 45ddd15ecf Allow preseeding form fields from URL parameters 10 달 전
CsrfException.php Initial commit 11 달 전
FileUpload.php Provide pathname of uploaded file 11 달 전
Form.php Allow preseeding form fields from URL parameters 10 달 전
FormField.php Remove unused validate() method 11 달 전
HiddenFormField.php Initial commit 11 달 전
README.md Add note on usage 11 달 전
SecretFormField.php Add SecretFormField 11 달 전
SelectField.php Initial commit 11 달 전
StaticFormField.php Add uneditable text field 10 달 전
UploadException.php Initial commit 11 달 전
test.php Allow preseeding form fields from URL parameters 10 달 전

README.md

Post

Some code to formalize parsing POST data and generating HTML forms. This is made as an attempt to de-duplicate code around generating forms with pre-existing data filled in.

There is no templating included, the final step for HTML generation must be done by the parent application. An example parent application is given in test.php.

Due to a lack of useful documentation, test.php is also the reference implementation.

Testing is done by clicking around in test.php.

Dependencies

  • session_start() needs to be called from the parent application
  • openssl is required for CRSF token generation
  • class autoloading needs to be done from parent application

How to use it

Include it via git checkout or submodule into the class autoload directories, under Post/. There is no packaging for compose etc, this is mostly meant for conventional php applications.