Hi;
I have 2 fields in mdb database. Both Field types are Yes/No.
Field Name: MaxPak Type: Yes/No
Field Name:MilPax Type: Yes/No
Here is My CF Page:
SQL------------------
<CFIF IsDefined("FORM.add"
>
<CFQUERY NAME="addContact" DATASOURCE="XPResults" DBTYPE="ODBC">
INSERT INTO
XPREQUEST
(MaxPak,MilPak,)
VALUES
('#MacPak#', '#MilPak#')
</CFQUERY>
------Form------------
<FORM ACTION="index.cfm" METHOD="post" NAME="addcontact" id="addcontact">
With this form I request <STRONG>one or both</STRONG> of the following (please check the pack(s) you would like):
<BR>
<INPUT TYPE="checkbox" NAME="MacPak" VALUE="Yes" DEFAULT="NO"> Macintosh XP Blade Demo Pack - Consisting of MAC 3 & 4.
<BR>
<INPUT TYPE="checkbox" NAME="MilPak" VALUE="Yes" DEFAULT="NO"> Miller XP Blade Demo Pack - Consisting of Miller 2 & 3.
<DIV ALIGN="center"><input type="submit" name="add" value="add"> <input type="Reset"></DIV>
</FORM>
-------------------------------------------------
This does not work, the error is whacking and I dont think I am doing it right.
Any ideas?
-Eric
I have 2 fields in mdb database. Both Field types are Yes/No.
Field Name: MaxPak Type: Yes/No
Field Name:MilPax Type: Yes/No
Here is My CF Page:
SQL------------------
<CFIF IsDefined("FORM.add"

<CFQUERY NAME="addContact" DATASOURCE="XPResults" DBTYPE="ODBC">
INSERT INTO
XPREQUEST
(MaxPak,MilPak,)
VALUES
('#MacPak#', '#MilPak#')
</CFQUERY>
------Form------------
<FORM ACTION="index.cfm" METHOD="post" NAME="addcontact" id="addcontact">
With this form I request <STRONG>one or both</STRONG> of the following (please check the pack(s) you would like):
<BR>
<INPUT TYPE="checkbox" NAME="MacPak" VALUE="Yes" DEFAULT="NO"> Macintosh XP Blade Demo Pack - Consisting of MAC 3 & 4.
<BR>
<INPUT TYPE="checkbox" NAME="MilPak" VALUE="Yes" DEFAULT="NO"> Miller XP Blade Demo Pack - Consisting of Miller 2 & 3.
<DIV ALIGN="center"><input type="submit" name="add" value="add"> <input type="Reset"></DIV>
</FORM>
-------------------------------------------------
This does not work, the error is whacking and I dont think I am doing it right.
Any ideas?
-Eric