Skip to Content
Dreamweaver CS5: The Missing Manual
book

Dreamweaver CS5: The Missing Manual

by David Sawyer McFarland
June 2010
Beginner to intermediate
1096 pages
42h 4m
English
O'Reilly Media, Inc.
Content preview from Dreamweaver CS5: The Missing Manual

Dynamic Form Fields

Form fields don’t necessarily have to be empty. For example, Dreamweaver automatically fills out the record update forms covered in the previous section with data it pulls from the database. Likewise, you don’t necessarily have to manually create the options in a pull-down menu; they could come from information in a database.

Imagine you create an Employee Directory section of your company’s website. On the Insert New Employee page, you build a pop-up menu that lets you select a department for the new employee.

You, the designer, could create a menu by manually typing in the name of each department (as described in the Forms chapter on Radio Group). But what if the names of the departments change, or your company adds new departments? You’d have to reopen the page and edit the form field each time this happened. But if you use a dynamic menu instead, the page automatically builds the Departments pop-up menu by retrieving the current list of departments from the database. Figure 25-9 shows a similar example of a dynamically created pull-down menu.

Dynamic form fields come in handy for update forms. Dreamweaver automatically fills in the fields with database information that’s ready to be edited. You can also dynamically generate menus from records in a recordset. The Vendor shown open here lists records retrieved from a database table containing the names of all the vendors who supply the CosmoFarmer online store.

Figure 25-9. Dynamic form fields come in handy for update forms. Dreamweaver automatically fills in the fields with database information that’s ready to be edited. You can also dynamically generate menus from records in a recordset. The Vendor shown open here lists records retrieved from a database table containing the names ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Dreamweaver CS4: The Missing Manual

Dreamweaver CS4: The Missing Manual

David Sawyer McFarland
Dreamweaver 8: The Missing Manual

Dreamweaver 8: The Missing Manual

David Sawyer McFarland

Publisher Resources

ISBN: 9781449381820Errata Page