If nothing is checked, then the form field will not be defined. You can check whether
or not it is defined with:
<cfif not isDefined("form.formfieldname")>
<!--- Reirect back to selection page --->
</cfif>
Or you can use javascript on that page..
-Ryan
-----Original Message-----
From: Robert Orlini [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 3:38 PM
To: CF-Talk
Subject: No input
I have a page where a user use checkboxes to select a book they want in a shopping
cart using sessions. Everything is OK, but when a user clicks submit without selecting
any book I get a "The specified form field cannot be found." error.
How can I check for input? If a user does not select a book via a checkbox I would
prefer it stays on that book selection page until they check off something.
Any help appreciated. Thx.
Robert O.
HWW
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at
http://www.coolfusion.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4