Can't use "ForceIncomingBool('Attribut', 1)"to get the result of a checkbox

edited August 2006 in Vanilla 1.0 Help
When using ForceIncomingBool to get the result of a checkbox, if the user didn't checked the box or unchecked it, ForceIncomingBool will return the default value since there is only a $_GET['Attribut'] or a $_POST['Attribut'] when the box is checked.

Comments

  • So... change the default value? ForceIncomingBool('Attribut', 0); ?
  • edited August 2006
    it just i thought i could use the one that follow to display the checkbox checked or not.ForceIncomingBool('Attribut', $Context->Configuration['Attribut']);
This discussion has been closed.