PHP Form Tips
Menu Debugging PHP
 

Tips on how to debug PHP forms

When degugging PHP forms there are many tools you can use to make sure that they are working the way that you want.

The fact is that debugging PHP forms is pretty much a trial-and-error process.

Just because a form is successful in submitting form entries when a "Submit" button is pressed it is not guarantee that the desire purpose is fulfilled. The key here is to test test test!

Even if the required data is collected and the action that you wanted was gathered, as in the case of a "feedback form" there may still be errors or warnings generated by your webserver.

The process:

This is an iterative process and it is unlikely that a script will perform in a manner that you require or expext. As such, if you are monitoring the accesses to your server you will probably want to use a "sand-box". Alternatively, you can upload pages without tracking and tell web robots not to index these test scripts/pages.

  • Create original form - get a form that works in a basic manner - you cannot proceed unless the basic form does something.
  • Test and adjust

PHP scripts and pages that contain PHP have to be tested on a server that supports PHP.

Top

Form Validation

A major feature in form design is getting the appropriate validation of the entered data.

Hardening

Protecting your forms from hacking cannot be over-looked.

Security

If the data you are sending and receiving from the server secure? Get and Post Transactions, SSL.

Links

Top

References:

  • -
  • Validate form email and URL - 🔗 - w3c
  • Using PHP_SELF in the action field of a form - http:// form.guide/php-form/ php-form-action-self.html
  • Apache mod_fcgid - https:// httpd.apache.org/ mod_fcgid/
  • HTML <form> method Attribute - https:// www.w3schools.com/tags/ att_form_method.asp

Site design by Tempusfugit Web Design -