knert - maybe better will be select? create select with 2 options "yes", "no" ... and check value of this select
Knert
2006-04-04 14:41
Hi Treewood,
Thnx for your quick response.
The problem with that is when you do a yes/no checkbox these data MUST be on the orderprint/e-mail. (when someone checks: 'no' and i get the order I never will know if he agreed to the terms)
When you do a obligation of the checkbox in the checkoutfield (so that that the box MUST be checked before sending the data) you don't need all of this above.
I hope you understand the difference. My english is not that good :-(
Knert - i wrote: "and check value of this select". create for example select: <select name="agree"> <option value="1">yes</option> <option value="">no</option> </select>
and check by checkForm (onsubmit) for example ,Array( 'agree', 'simple', 'YOU MUST AGREE OR I WILL HUNT YOU DOWN!' )
This may be a simpler solution -- The submit button is (disabled) until the checkbox is checked - the checkbox has an onclick event that enables/disables the submit button - very simple -- no long extra lines of code all these are form elements so they should work within the structure of the extisting form on the page