I have a Form page (registform1.cfm) which calls an action page called 'processme.cfm'. This page then first checks to make sure the username entered doesn't already exist in the database. if it does, I use the <CFLOCATION> to return the already filled in fullname.
<CFIF Checkusername.RecordCount GT 0>
<CFLOCATION URL="RegistForm1.cfm?Message=#URLEncodedFormat("The
username you chose already exists, please choose a different
username."
#&FullName=#URLEncodedFormat(FullName)#">
</CFIF>
Also, it checks whether the company_number entered is a valid one in the database. However, I want the ablility when this happens to send back all the other Form fields (Form variables) minus the username i.e the company_code, last_name, first_name, address, email, etc without having the user re-enter all this informaton again. At least for now I am able to send back the fullname. For now, my fields are blanked out when I am redirected back to the registration form page.
Can someone help me out here with the right way to do this. I'm new to Coldfusion and will appreciate any help.
Attick111
<CFIF Checkusername.RecordCount GT 0>
<CFLOCATION URL="RegistForm1.cfm?Message=#URLEncodedFormat("The
username you chose already exists, please choose a different
username."
</CFIF>
Also, it checks whether the company_number entered is a valid one in the database. However, I want the ablility when this happens to send back all the other Form fields (Form variables) minus the username i.e the company_code, last_name, first_name, address, email, etc without having the user re-enter all this informaton again. At least for now I am able to send back the fullname. For now, my fields are blanked out when I am redirected back to the registration form page.
Can someone help me out here with the right way to do this. I'm new to Coldfusion and will appreciate any help.
Attick111