Go to file
2019-08-15 19:54:11 +00:00
CsrfException.php Initial commit 2019-08-14 19:22:54 +02:00
FileUpload.php Initial commit 2019-08-14 19:22:54 +02:00
Form.php Initial commit 2019-08-14 19:22:54 +02:00
FormField.php Initial commit 2019-08-14 19:22:54 +02:00
HiddenFormField.php Initial commit 2019-08-14 19:22:54 +02:00
README.md Explain this project a bit in README 2019-08-15 19:54:11 +00:00
SecretFormField.php Add SecretFormField 2019-08-15 21:33:44 +02:00
SelectField.php Initial commit 2019-08-14 19:22:54 +02:00
test.php Make test.php work without external help 2019-08-15 19:45:20 +00:00
UploadException.php Initial commit 2019-08-14 19:22:54 +02:00

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