joetadalan
Programmer
I am new to ColdFusion and this is my problem -
I have created a login screen -
User Name
Password
Confirm Password
Once that has been Validated -
I bring up a new information screen - general information
with the User Name being brought over as a display only field -
The problem occurs when I try and validate the data entered - I lose the UserName field -
Here is part of the code -
<FORM ACTION="submit2.cfm?UserName=#UserName#" method=POST>
<PRE>
<cfoutput>
<input type="hidden" name="UserName" Value="#UserName#">
<b>User Name: #URL.UserName#</b><br><br>
</cfoutput>
Title: <select Name="prefix" Value="<cfoutput>#form.prefix#</cfoutput>">
<option>MR.
<option>MRS.
<Option>Ms.
<Option>Miss
</select>
First Name: <input type="text" NAME="FirstName" Size="10" MaxLength="25" Value="<cfoutput>#form.FirstName#</cfoutput>"> M.I.: <input type="text" Name="MiddleName" size="1" MaxLength="1" Value="<CFOUTPUT>#form.MiddleName#</CFOUTPUT>"> Last Name:<input type="text" NAME="LastName" size="15" MaxLength="30" Value="<CFOUTPUT>#form.LastName#</CFOUTPUT>">
Suffix: <input type="text" NAME="Suffix" size="2" MaxLength="2" Value="<CFOUTPUT>#form.Suffix#</CFOUTPUT>">
<p>
<b>Mailing Address:</b>
Address Information is for informational purposes only and is not required.<br>
Street Address:<input type="text" NAME="StNumber" Size="10" MaxLength="15" Value="<CFOUTPUT>#form.StNumber#</CFOUTPUT>"> <input type="Text" NAME="StName" Size="15" MaxLength="25" Value="<CFOUTPUT>#form.StName#</CFOUTPUT>"> <input type="Text" NAME="StType" Size="2" MaxLength="10" Value="<CFOUTPUT>#form.StType#</CFOUTPUT>">
City: <input type="Text" NAME="City" Size="10" MaxLength="25" Value="<CFOUTPUT>#form.City#</CFOUTPUT>"> State: <input type="Text" NAME="State" size="2" MaxLength="5" Value="<CFOUTPUT>#form.State#</CFOUTPUT>">
Zip Code: <input type="Text" NAME="PostalCode" size="5" MaxLength="15">
<p>
<b>Other Contact Information:</b>
Other Contact Information is for informational purposes only and is not required.<br>
Phone: <input type="Text" NAME="HomePhone" Value="<CFOUTPUT>#form.HomePhone#</CFOUTPUT>">
Alt Phone: <input type="Text" NAME="WorkPhone" Value="<CFOUTPUT>#form.WorkPhone#</CFOUTPUT>">
<p>
E-mail Address: <input type="Text" NAME="EmailAddress" Value="<CFOUTPUT>#form.EmailAddress#</CFOUTPUT>">
</PRE>
<input type="Submit">
</FORM>
In the First Statement - Form - is that where the problem is -
Any help is greatly appreciated.
I have created a login screen -
User Name
Password
Confirm Password
Once that has been Validated -
I bring up a new information screen - general information
with the User Name being brought over as a display only field -
The problem occurs when I try and validate the data entered - I lose the UserName field -
Here is part of the code -
<FORM ACTION="submit2.cfm?UserName=#UserName#" method=POST>
<PRE>
<cfoutput>
<input type="hidden" name="UserName" Value="#UserName#">
<b>User Name: #URL.UserName#</b><br><br>
</cfoutput>
Title: <select Name="prefix" Value="<cfoutput>#form.prefix#</cfoutput>">
<option>MR.
<option>MRS.
<Option>Ms.
<Option>Miss
</select>
First Name: <input type="text" NAME="FirstName" Size="10" MaxLength="25" Value="<cfoutput>#form.FirstName#</cfoutput>"> M.I.: <input type="text" Name="MiddleName" size="1" MaxLength="1" Value="<CFOUTPUT>#form.MiddleName#</CFOUTPUT>"> Last Name:<input type="text" NAME="LastName" size="15" MaxLength="30" Value="<CFOUTPUT>#form.LastName#</CFOUTPUT>">
Suffix: <input type="text" NAME="Suffix" size="2" MaxLength="2" Value="<CFOUTPUT>#form.Suffix#</CFOUTPUT>">
<p>
<b>Mailing Address:</b>
Address Information is for informational purposes only and is not required.<br>
Street Address:<input type="text" NAME="StNumber" Size="10" MaxLength="15" Value="<CFOUTPUT>#form.StNumber#</CFOUTPUT>"> <input type="Text" NAME="StName" Size="15" MaxLength="25" Value="<CFOUTPUT>#form.StName#</CFOUTPUT>"> <input type="Text" NAME="StType" Size="2" MaxLength="10" Value="<CFOUTPUT>#form.StType#</CFOUTPUT>">
City: <input type="Text" NAME="City" Size="10" MaxLength="25" Value="<CFOUTPUT>#form.City#</CFOUTPUT>"> State: <input type="Text" NAME="State" size="2" MaxLength="5" Value="<CFOUTPUT>#form.State#</CFOUTPUT>">
Zip Code: <input type="Text" NAME="PostalCode" size="5" MaxLength="15">
<p>
<b>Other Contact Information:</b>
Other Contact Information is for informational purposes only and is not required.<br>
Phone: <input type="Text" NAME="HomePhone" Value="<CFOUTPUT>#form.HomePhone#</CFOUTPUT>">
Alt Phone: <input type="Text" NAME="WorkPhone" Value="<CFOUTPUT>#form.WorkPhone#</CFOUTPUT>">
<p>
E-mail Address: <input type="Text" NAME="EmailAddress" Value="<CFOUTPUT>#form.EmailAddress#</CFOUTPUT>">
</PRE>
<input type="Submit">
</FORM>
In the First Statement - Form - is that where the problem is -
Any help is greatly appreciated.