Home Submit Sources Feeds
Home » PHP » Forms
PHP Forms tutorials
This is going to be another small tutorial on collecting data sent from a form and then doing something with it in PHP.
Related Tutorials
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.
HTTP Request Variables
This tutorial describes: What are the predefined variables that store information from the HTTP request, A sample script to test request variables, How to promote request variables to stand alone variables.
Data Types and Variables
This tutorial describes: What are PHP data types, How to define variables, references, and variable variable names, How to define and use constants.
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.
Using arrays
Instead of having our information (variables or numbers) in variables like $Mydata1, $Mydata2, $Mydata3 etc, by using arrays our information may be contained in an unique variable. Very often, we will create an array from data obtained from a table with only one column.
Using arrays: basics
Instead of having our information (variables or numbers) in variables like $Mydata1, $Mydata2, $Mydata3 etc, by using arrays our information may be contained in an unique variable. Very often, we will create an array from data obtained from a table with only one column.
PHP variables
This article explains PHP variables, and shows how to create, change, and use variables, as well as how to name PHP variables.
Variables in PHP
If you did not guess, variables are the most important thing in php and most other programming languages. I'll be telling you about simple variables and how to use them.
Setting array keys and displaying the data
Arrays in PHP are variables which can hold more than one data item. Actually, they can hold many. This is useful if you need to hold a recordset or list of data, often needed in PHP scripts.
Form Calculations
In this tutorial you will be learning : assigning variables, operators, outputting info.
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.
Form Processing
One of the best features of PHP is possibility to respond to user queries or data submitted from HTML forms. You can process information gathered by an HTML form and use PHP code to make decisions based off this information to create dynamic web pages. In this tutorial we will show how to create an HTML form and process the data.
Intro To Object: Option Variables
We're going to make it where we can do different code based on the variables passed to the function.
Storing Checkbox Data In Your Database
Checkboxes in web forms are useful because they allow the person filling out the form to choose from a wide range of possible choices. Specifically, it allows the user to choose some, all or none of the elements. Although checkboxes are excellent form elements for certain tasks, there is often confusion about how to store checkbox data correctly. This article will demonstrate how to store checkbox data in a database, in a manner that follows good database design principles.
PHP-Based Chat Room
This particular design of web-based chat uses variables posted from a form, processes them into HTML and writes them to a file. Put the form and the message file in a frameset and you have something that looks reasonably like a BeSeen chat room. Of course the advantage is, our chat room can be a little more clever than it's BeSeen cousin.
Submit data to a Google Form with PHP
This tutorial shows you how to submit data to a Google Spreadsheet with a custom PHP form.
Welcome to PHP
This is a comprehensive article / tutorial on programming in PHP. It covers a variety of key topics including PHP Structure, Scalar Variables and Data, Data collection: Arrays, Operations and Comparisons, PHP Comparison Operators, PHP Logical Operators, Control Statements, The Function of Functions, and Object Orientation.
PHP Variables
Variables in PHP are represented by a dollar sign followed by the name of the variable.
Constants
Constants just as variables are used to store information. The main difference between constants and variables is that constant value can not be changed in the process of running program. It can be mathematic constants, passwords, paths to files, etc.
Multiple variable assignment
This post shows how it is possible to assign multiple variables with the same value with PHP. This can be useful if initializing multiple variables with the same initial value or if needing to make multiple copies of a value and then manipulate each separately.
Variables
Let's learn a little about Variables.
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.
Variables
A variable is a holder for a type of data. So, based on its type, a variable can hold numbers, strings, booleans, objects, resources or it can be NULL.
Shopping cart using SESSION variables
In this post I will show you how to create an effective shopping cart using PHP session variables.
Introduction to Serializing
Serializing is a technique that allows you to turn variables, arrays, functions or objects from PHP into a form that can be used to store them, and when needed, convert them back into PHP. Serializing is useful for flatfile applications that store things in arrays, and are good for CMS features that can let you edit how it works to an advanced degree.
Import Request Variables
A more elegant way to import request variables in PHP.
Restricting External Access to .PHP Files
Sometimes, when you are writing your PHP script, you'll write Classes and Functions that you will use in your script in external files so that they might be included( ) or required( ) at any time. The same could be said about configuration files - You have certain settings in the form of variables in a external configuration file that you load in the different pages of your script so that they might be shared and edited with ease.
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 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.
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.
Password Protection with PHP, MySQL, and Session Variables
Learn how to implement password protection using PHP, MySQL and session variables.
User-Driven Querying
We explain user-driven querying by introducing how to: * Pass data from a web browser to a web server. * Access user data in scripts. * Secure interactive query systems. * Query databases with user data. * Produce one script that contains an HTML <form> and the code that outputs the query results. We call this a combined script. * Develop results pages with previous page and next page links. * Use five-step querying to produce components for user input.
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.
File Creator/Editor
Create a form that makes and/or adds data to files on your server. Could be useful in creating a simple guestbook and free for all links flat file database.
Making a PHP Login Form
This is a failry simple thing to do and in this tutorial I will show you how to construct a PHP login form using the functions in my php login form script.
The Universal Web Form Processor
This article describes how to create a generic form processor in PHP. Discussion involves form elements, hidden fields, and more. Also covers the installation process of NuSphere MySQL, an integrated multi-platform distribution of Apache, Perl, PHP, and MySQL.
Variable Basics
Learn about variables in PHP and how they work.
 
Categories