![]() |
To create an action page for the form: |
ActionPage.cfm
within the CFDOCS
directory. Remember that the form that you just created will pass values to a page called
ActionPage.cfm
when the form is submitted.
<H4>Employee Data Passed to the Action Page </H4>
<CFOUTPUT> </CFOUTPUT>
Last Name: #Form.LastName#<BR> Department: #Form.Department_Name#<BR> Contract Employee? #Form.Contract#<BR>
FormPage.cfm
in your browser.ActionPage.cfm
should return the values that you submitted.
If you receive errors, read the message and check for spelling mistakes.
An error occurs when the checkbox does not pass to the action page.
During the next chapter, you will learn how to use conditional logic to handle this form limitation.
Click here to run the form and see how the action page should look at this time.
Click here to see the code behind the scenes.
![]() |
Note: | Remember that, if you submit the form without checking the checkbox, you will receive errors. You will learn how to apply conditional logic to your action page to compensate for this HTML limitation in the next chapter. |