Handle form submissions with PHP Dreamweaver and PHP


show more Handling form submissions with PHP provides you with in-depth training on Business. Taught by David Gassner as part of the Dreamweaver with PHP and MySQL show less
please wait ...

Handling form submissions with PHP

Once you've created a working data entry form, you can then handle your form submissions with a little bit of PHP code. For this demonstration, I'll use the file simpleform2.php. It has a copy of the form that I created in a previous video. The first step is to remember what the names of your form controls are. When I created this form, I created two text controls. The first one had a name and ID of firstname. You'll need to remember those values in order to handle your PHP form submission.

To make this easy to code, I'll use the Bindings panel. The Bindings panel lets you set up form and other types of variables that you can then easily insert into your PHP code. I'll go to the Plus button, and I'll choose Form Variable. I'll set a Form Variable name of firstname, matching the name and ID of the first form control, and I'll click OK. Then I'll repeat the process to create a Form Variable for lastname.

By placing these items in the Bindings panel, you...

Handling form submissions with PHP
Video duration: 5m 12s 4h 55m Intermediate Updated Jun 12, 2012

Viewers:

Handling form submissions with PHP provides you with in-depth training on Business. Taught by David Gassner as part of the Dreamweaver with PHP and MySQL

Subjects:
Business Developer Web
Software:
Dreamweaver
Author:
please wait ...