This content has been marked as final. Show 5 replies
I don't know if this will help, but here is the checkusername code:
<cfquery name="un_search" datasource="#Request.MainDSN#">
SELECT username FROM members WHERE username='#FORM.username#'
<cfif un_search.RecordCount GTE 1>
Add the rest of the form variables to the url attribute of your cflocation tag.
Yeah, i tried that, but since I need to bind the fields to the URL., it
gives me an error, to start the page because they are not defined to begin
So would I have to <cfparam> each field first, which should start them all
at "", and then set them using the URL's value if the username is taken?
You could cfparam them. It's probably the easiest way.
<cfparam name = "url.field1" default = "">
dot dot dot
<cfinput name="field1" value="#url.field1#">
That's what I thought it would come down to. Thanks. Didn't know if there
was an easier way.
In ASP you just bind the text box to Request.QueryString. Didn't see
anything like that in Coldfusion.