Home » PHP » Forms
PHP Forms tutorials
In Part 1 of this tutorial, we covered the basics of our Form Validation Class. We explained how the core of the Class depends on regular expressions and gave an insight regarding the keyword concept. We also explained how each keyword will have a corresponding Class Method so that we can easily extend the Class in the future to suit our needs. In Part 2, we will get our hands dirty in creating the remaining useful Class Methods that will instruct the Class which form fields to validate and how to validate them.
Related Tutorials
An Expandable Form Validation Class: Part 1
Learn how to create an expandable Form Validation Class, that once complete, you will able to use in any of your PHP scripts. The beauty of this Class is that it is expandable with ease. This means that once the base code of the Class is complete, you can easily configure it to validate different types of form data with virtually no changes. The extra configurations will only be limited to your programming knowledge.
An Expandable Form Validation Class: Part 3
In this final Part we will be coding some example validation rules and explaining how to use them. We will then go on and show how the final complete Class can be applied in a real working environment, so that you can use it in all your future scripts. At the end of this Part, you should have gained a complete understanding of how the Class operates, and proceed to expand on it with ease.
AJAX Validation
This chapter helps readers to create a form validation application that implements traditional techniques with added AJAX flavor, thereby making the form more user friendly, responsive, and pleasing. pdf file, install Acrobat reader to view this tutorial.
Validation on the Server and Client
Validation is essential to web database applications. Ensuring that data meets user and system requirements is important, but ensuring that the database constraints are met by the data is critical. There are three possible data environments in which validation can occur in a three-tiered web database application: in the DBMS, in server-side scripts, and on the client. We discuss the merits and possibilities of these approaches to validation in this tutorial.
jQuery Contact form for your website
In this tutorial we show how to create a modern contact form that is linked by a simple text link and opens in a fancy Lightbox where all form handling, including reCAPTCHA validations, are processed by PHP and the jQuery Ajax function. After the form submission was successful we are using the PHP Class script PHPMailer to send the message via SMTP.
Email validation with regular expression
A short tutorial howto validate an email address during form processing. An example "copy & paste" html form code is included to demonstrate the functionality.
Advanced Comments System With jQuery
Features: * its very fast and very easy to use. * it has standard validation. * From now on,there is no spamming comments by robots because its not useing the <form></form> tags. * its working without loading the page or redirect to other page. * its has cool loading effect when tring to post your comment. * much more...
In Depth Contact Form Part 3 - Better Error Checking
Part 3 of the contact form tutorial looks back at the error checking in place previously, and asks the question "How can we make it better?".
How to use the LoadVars Class
The LoadVars class allows developers to have a better control of the external loaded data. There are many reason to use the LoadVars class intead of the old deprecated loadvariables and loadvariablesNum.
PHP and UML Class Diagrams
UML (Unified Modeling Language) is a mechanism for representing software in the form of diagrams. Essentially it allows to design our applications by drawing, and if the right tools existed, even generate code from the diagrams. In this article we'll look at how PHP code is represented in UML terms, via use of the the UML class diagram.
Object Oriented Programming: Image Class
Create an image class, in this class there are 4 function: One to Upload; One to Resize; One to get a file extension and One to resize on the fly.
User Input Validation
A detailed tutorial with basic examples on user input validation using PHP patterns.
How to create a gallery class
In this tutorial, we will create a gallery class, and also a template class that will work together with the gallery class.
Creating a Mail Form with PHP and Flash - Part 2
This tutorial will explain how to Creating a Mail Form with PHP and Flash - Part 2.
PHP Table Class
This is a class for generating HTML tables. It's kind of rough, but I thought somebody might want to do something with it.
In Depth Contact Form Part 2 - The PHP Code
In depth tutorial focusing on the basics of processing a contact form.
Clean way to call to multiple xmlrpc remote servers
I've got a class library in PHP. This class library is distributed in a several servers and I want to call them synchronously. The class library has a XMLRPC interface with Zend Framework XMLRPC server.
Phorm Manager
In this part four of a series on HTML form handling with PHP, it explains how to create a powerful PHP form handler, called Phorm Manager.
PHP Form Class
Generates select boxes, text boxes, check boxes and radio buttons. Via a handful of functions.
Intro To Object Oriented: Creating Your First Class
Introduction to object oriented programming (oop), create your very first php class.
Creating a bank_account Class
To demonstrate the use of a class, lets create one to model a bank account.A bank account has certain information associated with it, such as itsaccount number, the PIN number needed to access it, and its balance.
Creating a bank_account Class
To demonstrate the use of a class, lets create one to model a bank account.A bank account has certain information associated with it, such as itsaccount number, the PIN number needed to access it, and its balance.
Advance Pagination Class
This class will display the results of any MySQL table including all the fields and rows. It will work out how many fields there are and display the results accordingly
Contact form validation
Creating a very simple PHP script that will stop some basic spam bots submitting blank or spam messages in contact forms. What we need to do is call the parameters and check to see if what has been submitted is blank or if it contains data. Also we will check to see if the email that is entered has to correct characteristics of an email address. If you are new to html and PHP this is a rather easy tutorial to follow I will explain in detail what each function is and how it works.
Programming your own framework Part 2 MVC
This is part 2 of the programming your own php framework view part 1. The below article was authored by Terry Smith. Terry is an aspiring entrepreneur and PHP code ninja working for b5media. He spends his weekends and free time working on all sorts of crazy ideas and one day wants to rule the world (or a small part of it)
Developing a URL Handling Helper Class in PHP 5
In this third installment of a series on building helpers in PHP 5, I will provide you with the basic pointers for building a URL-handling helper class. The code examples, though simple, should serve to demonstrate how to create a helper that generates dynamic URLs.
PHP Contact Form
I made a simple form, but it gets the job done. You can customize it if you want, but remember to use the same form variables.
Getting Clean (Validation)
We're going to take a closer look at these filters, how to use them, and build a few custom functions.
Dynamic website part 2
Part 2 of the "dynamic website" tutorial serie. In this part we will create a basic database and query this database to display the articles. We'll then implement a very simpel but kick ass pagination.
PHP Form image verification
When you build a form in your web page, you are susceptible to being spamed by automated systems. In order to make sure that the one who completes the form is human, you can use the system with image verification. You can see here a sample of form with a random text image verification.
PHP Classes - OOP
Most people are afraid of classes and refuse to see the use of them. I was, until I took a JAVA class, which requires the use of classes, and saw the actual beauty of them. Classes are really useful, they reduce the clutter of your code, and make updating a site very easy. Unfortunately, classes aren't as useful in PHP as in other languages, but I still like them. I'm going to use my site as an example, where I have the user_commands class, which handles all the users on the site (ie login, logout, session_ids, etc). It makes my code very neat and organized, and it really pays off when you need to make a change.
Creating a PHP Quiz Page
PHP can be used to evaluate Quiz pages. The quiz page may be written in a normal form fashion, either multiple choice or True-false. After you create this form page, setting your PHP page as the action for the form, your php page can pick up the variables and evaluate the results of the form, scoring the form.
PHP form Introduction
This article demonstrates how to use PHP forms. You will find detailed information from the form basics to advanced form processing.
Form Handling
We are going to be working with the $_Post or $_Get arrays. They basically tell the form if i needs to post something, or get something. In this case we are going to be showing you the basics of a contact email form, so we will be using the $_Post array.
Creating a simple contact form with PHP
In this tutorial I will show you how to create a simple contact form with PHP. With the help of a contact form your visitors will fill out a form and its content will be send to you via email.
Contact Form
I will explain to you how you can create a simple contact form. The form will collect data from the visitor and send it to any email address you please. The only requirement for this tutorial is for you to have .php enabled on your server.
Advanced Pagination Class in PHP
Now I am going to go through how to make an advanced pagination class in PHP.
Regular Expressions and PHP
We all know the importance of regular expressions. They are inseparable part of most user input form validations. This tutorial gives you the basic overview of regular expressions in POSIX style and their support by PHP.
Creating simple PHP contact form
When you need user send feedback to your email you can usecontact form. In this tutorial you'll learn how to create contact form with php script.
Creating simple PHP contact form
When you need user send feedback to your email you can usecontact form. In this tutorial you'll learn how to create contact form with php script.
 
Categories