How to Add and Use the Insert Record Server Behavior


show more Using the Insert Record server 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 Insert Record server behavior

Once you've created a data entry form using your own custom HTML and Cascading Style Sheets, and prepared your database table to receive inserts, you can then apply a server behavior to the form. The server behavior creates all of the PHP code you need to collect the data from the form and send it to the server. I am working in the file explorers/explorerinsert2.php. This version of the form already has all of the data validation I need. I will show the form in the browser and show you its behavior.

When I click the Submit button, I get validation messages on all of the relevant text fields and also on the State Select control. I'll go back to Dreamweaver and then open the Server Behaviors panel. If you don't see Server Behaviors on the right, as it is in my setup, you can go to the menu and choose Window > Server Behaviors. In the Server Behaviors panel, I'll click the Plus button and then choose Insert Record. In the Insert Record wizard, I am asked for the form tha...

Using the Insert Record server behavior
Video duration: 5m 42s 4h 55m Intermediate Updated Jun 12, 2012

Viewers:

Using the Insert Record server 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 ...