Use the Update Form behavior Dreamweaver and PHP


show more Using the Update Form behavior 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 ...

Using the Update Form behavior

Once you've prepared you data entry form, you can apply a server behavior to it, to collect the data from the form, and then update a record in the server-side database table. For this exercise, I'll use the file explorerupdate2.php in the explorers folder of the site root. This page is designed to retrieve a single record from the database table and display it in the browser. The user can make changes to the data and click Submit, and the data should then be sent to the server. There is a problem with this form, though.

When I click the Submit button, I get an Invalid Format message on the date, and that's because this data entry form is designed to validate the date and look for it in the format of month/day/year. So we have to reformat that value before we present it in the form. I'll close the browser and return to Dreamweaver, and go to Code view. Now, in the previous exercise, I showed you a file that's a part of the _includes folder, named formfunctions.php.

This fi...

Using the Update Form behavior
Video duration: 5m 46s 4h 55m Intermediate Updated Jun 12, 2012

Viewers:

Using the Update Form behavior 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 ...