Friday, July 27, 2012

Done with assignment 4--adding a form to a template

I am essentially finished with the assignment of adding a form to each of my templates. While each template has a form, only one of them integrates recaptcha in form submission. I added recaptcha to one of the forms in order to  demonstrate that I could do it, but not both, because adding recaptcha was optional and I wanted to save time.

The pages look nice and seem to function as I'd hoped, as well.

I did have a problem when the 'AltPage2.assy4prt2.php' page did not seem to be using the javascript file which checks the form elements. I fixed this by moving the JS file out of the 'include' folder and into the same directory as the webpage. I am not sure what the original problem was because I should be able to put included files in a separate folder. So if I want to work in this business I should probably develop an understanding of why it was a problem to have the JS file in an include folder, but my solution seems to work.  Also, I noticed that the variables in the form seem to be 'set' to an empty string when the user does not type anything in the form elements. Therefore, using isset() in a conditional that either posts or processes the form  always to seemed to yield 'true,' the result being that the form was always processed whether the user entered any input or not. In this case it seems ok because the JS will shouldn't allow the form to be submitted without the required entries, but this issue is something to keep in mind should I run into it elsewhere.

Lastly there is the issue of how long I took to complete this assignment.  I did approx two seven hour days plus one 2 hour day for a total of ~16 hours. If I assume we average about one assignment every 5 days, this means I'd need to do about 3 hours a day to stay caught up--and I am actually behind on things.


No comments:

Post a Comment