I have a 2 page form. The first form asks, for the email address. On the second page, I want the email field to prepopulate what the user entered on the first page.
Here's what I have:
First page: <tr>
<td align="right"><span class="required">*</span>Email address:</td>
<td " align="left">
<cfif ParameterExists(session.screeneremail) AND cgi.http_referer CONTAINS "register4.cfm">
<cfinput type="Text" name="screeneremail" message="Please enter an email address." required="Yes" value="#session.screeneremail#">
<cfelse>
<cfinput type="Text" name="screeneremail" message="Please enter an email address." required="Yes">
</cfif>
</td>
</tr>
second page:
<cfinput type="Text" name="screeneremail" message="Please enter an email address." required="Yes" value="#form.screeneremail#">
Hopefully you can tell me what I'm doing wrong here. I appreciate any help!!
Here's what I have:
First page: <tr>
<td align="right"><span class="required">*</span>Email address:</td>
<td " align="left">
<cfif ParameterExists(session.screeneremail) AND cgi.http_referer CONTAINS "register4.cfm">
<cfinput type="Text" name="screeneremail" message="Please enter an email address." required="Yes" value="#session.screeneremail#">
<cfelse>
<cfinput type="Text" name="screeneremail" message="Please enter an email address." required="Yes">
</cfif>
</td>
</tr>
second page:
<cfinput type="Text" name="screeneremail" message="Please enter an email address." required="Yes" value="#form.screeneremail#">
Hopefully you can tell me what I'm doing wrong here. I appreciate any help!!