Creating an Application with <CFIF>

Now let's return to Gargantuan's project. Gargantuan wants its tech employees to supply a password with each entry they input, and you can probably already see where <CFIF> is going to come in handy.

You envision that the best place to insert the password protection is in the input template you built in Day 7, "Changing the Contents of a Database with ColdFusion." In this way, when the employee wants to add the details of a goofy tech-support call, she must also supply a password associated with her username. When the form is posted, ColdFusion will evaluate the password to see whether it matches the one supplied to the employee. If the match is successful, the database will be updated with the call description ...

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.