[CODE=cfm] <cfif (Attributes.icq NEQ "") AND IsNumeric (Attributes.icq ) AND IsValid("intege r", Attributes.icq) >
<cfset Variables.oStud entProfile.icq = Attributes.icq />
<cfelse>
<cfset temp = Request.oClient Error.setError( "icq", "Your ICQ must consist of numbers only.") />
</cfif>[/CODE]
Ok, so if the student enters something in this field I want to save that info. If the field is blank then ignore it.
The code above give me the following problem. If it's left blank then it does the SET ERROR request.
So, at the moment users would have to at least enter "0" in order to save.
Also, I know ICQ is ancient... What can I say? I don't design the thing, I just code it ^_^
<cfset Variables.oStud entProfile.icq = Attributes.icq />
<cfelse>
<cfset temp = Request.oClient Error.setError( "icq", "Your ICQ must consist of numbers only.") />
</cfif>[/CODE]
Ok, so if the student enters something in this field I want to save that info. If the field is blank then ignore it.
The code above give me the following problem. If it's left blank then it does the SET ERROR request.
So, at the moment users would have to at least enter "0" in order to save.
Also, I know ICQ is ancient... What can I say? I don't design the thing, I just code it ^_^
Comment