• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Registering an Attendee

The conference home page is shown in Figure 15.2. From this page, users can begin the registration process by clicking on the available hypertext or, if they have already registered, they can log in and make changes to their information. Listing 15.1 shows the code for the home page.

Listing 15.1. index.cfm—The New ColdFusion Developers Conference Home Page

<!---

    Conference Registration Case Study

    This is the conference registration home page. From here,
    a returning attendee can log in and make changes to contact
    information, view workshop schedules, or change workshop
    enrollment. New users would follow the registration link
    to begin the registration process.

    The <cfparam> tag sets up a default value for the cookie
    named ConferenceUserName.

--->

<cfparam name="Cookie.ConferenceUserName" default="">

<html>

<head>
<title>New ColdFusion Developers Conference Home Page</title>
</head>

<body>

<h1>Welcome!</h1>

<p>The New ColdFusion Developers Conference is the perfect opportunity
to advance your knowledge of dynamic Web development with ColdFusion
and to network with your fellow developers.</p>

<p>If you have already registered and need to view your schedule or
change your registration information, please log in below. Otherwise,
please <a href="register1.cfm">complete the registration process</a>.</p>

<table>

<!---

    The <cfform> and <cfinput> tags add JavaScript to the
    resulting form that make the username and password
    fields required.

--->

<cfform action="login.cfm" method="post">

<!---

    The value attribute in the <cfinput> tag prepopulates the
    field with the attendee's username if the attendees chose to
    have it remembered when logging in.

--->

<tr>
<td><b>Username:</b></td>
<td><cfinput type="text" name="uname" size="20"
value="#Cookie.ConferenceUserName#" required="yes"
message="Please enter your username before submitting."></td>
</tr>

<tr>
<td><b>Password:</b></td>
<td><cfinput type="password" name="pw" size="20" required="yes"
message="Please enter your password before submitting."></td>
</tr>

<tr>
<td colspan="2">
<input type="checkbox" name="remember" value="1" checked> Remember
my username on this computer.
</td>
</tr>

<tr>
<td colspan="2">
<input type="submit" value="Log In">
</td>
</tr>

</cfform>

</table>

</body>

</html>


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint