![Picture of Jim Pietrangelo Picture of Jim Pietrangelo](/picture/user/777633.jpg)
Jim Pietrangelo - 2009-07-04 00:22:25
I'm relatively new to PHP programming and I am trying to create a web application using your form generator and validation class. I have many individual forms that are used to maintain multiple MySQL database tables.
All my forms are self-submitting and work just fine without your class. However, I would like very much to change them to use your class, mostly because of the excellent built-in validation methods.
Each of my form pages handles the entire C-R-U-D procedure, using a switch statement to decide which procedure to implement.
When I READ in a table row, I need the values to display in the form so that they can be edited if necessary. However, I can not figure out how to do that with your class. I've tried adding "VALUE"=>"$someVariable" to the AddInput arrays, but that doesn't seem to work. It was the only thing I could think to do.
I would appreciate some help or advise.
Also, are there any working example scripts other than the test_form.php that you enclose with the class? I would like to see one that interfaces with a database so that I can see exactly where to place my form handler code.
Thanks in advance.
Best,
Jim