PHP Classes

Comments and Improvements

Recommend this page to a friend!

      PHP Create Form  >  All threads  >  Comments and Improvements  >  (Un) Subscribe thread alerts  
Subject:Comments and Improvements
Summary:Minor glitches preventing usage
Messages:1
Author:Gary Smith
Date:2016-08-07 16:38:13
 

  1. Comments and Improvements   Reply   Report abuse  
Picture of Gary Smith Gary Smith - 2016-08-07 16:38:13
Having a way to generate a form programmatically can be very helpful when it is not known in advance what will be needed. Thanks for your work in creating these classes. There are some minor issues standing in the way of using the work as it is currently.

1) The packaged (tar/zip) file provided should produce a working test environment, including the composer option. The teste.php file's require_once is expecting the class files to be in a directory named class, but the packaged (tar/zip) file has the files at the same level as the teste.php file. Therefore, the test will fail, which may put potential users off (they may not troubleshoot what is wrong). It would be better to move the class files to a directory in your packaged (tar/zip)file.

2) The example does not have a Submit button. Your example should show how to create the submit button programmatically.

3) The code produces the style in the body of the page (after the form), but the style should always be in the HEAD section in order to properly validate. Some organizations require validated code. You need to have a way of producing the style code separate from the form code. That makes it more difficult to create a form programmatically, but at least you understand the issue. I wish you the best of luck in solving this issue.