here's the problem:
I have a form field named email.
On submit it goes to a processing page that has the following code:
<cfparam name="email" default="off">
<cfquery name=""
datasource="ccdb"
dbtype="ODBC">
insert into
questionaire (email)
values ('#email#')
</cfquery>
If nothing is put into the email field
the follwing error occurrs:
ODBC Error Code = S1000 (General error)
[Microsoft][ODBC Microsoft Access Driver] Field 'questionaire.email' cannot be a zero-length string.
I thought the cfparam tag should give the email variable a default value of "off" that would then be inserted into the database?
I have a form field named email.
On submit it goes to a processing page that has the following code:
<cfparam name="email" default="off">
<cfquery name=""
datasource="ccdb"
dbtype="ODBC">
insert into
questionaire (email)
values ('#email#')
</cfquery>
If nothing is put into the email field
the follwing error occurrs:
ODBC Error Code = S1000 (General error)
[Microsoft][ODBC Microsoft Access Driver] Field 'questionaire.email' cannot be a zero-length string.
I thought the cfparam tag should give the email variable a default value of "off" that would then be inserted into the database?