Ok, I understood. I think you need a little workaround ... Maybe try this. Inside the form I would use a hidden input-field that value is a comma-seperated list with the name of all checkboxes inside the form. This field will be submited with the form. Now you know which checkboxes are inside the form and can ask the request if it is present. If you use everytime the same name for this hidden field (containing the names of the checkboxes), you can make you validation-routine very dynamic and you do not need JavaScript !!!!! cu Frank > -----Ursprüngliche Nachricht----- > Von: Andrew Steady [SMTP:[EMAIL PROTECTED]] > Gesendet am: Donnerstag, 19. April 2001 13:14 > An: [EMAIL PROTECTED] > Betreff: Re: AW: null or empty string > > This is the behaviour as I understood it and it leaves no way to tell if a > user has left a checkbox selection blank without knowing specifically that > you were exepecting it on that page, something my current design dosen't > enforce with other types of input (nice and dynamic). > > I may be able to extend the Form tag to include some onSubmit csjavascript > that searches through fields and makes sure a blank string is submitted if > it has been left unchecked. We shall see. > > Andy S > > > > > > [EMAIL PROTECTED] on 19/04/2001 12:11:23 > > Please respond to [EMAIL PROTECTED] > > To: [EMAIL PROTECTED] > cc: (bcc: Andrew Steady/Swindon01/Domino01/Kinesis) > Subject: AW: null or empty string > > > > > Hi Andrew, > The the normal behavior of an checkbox is, that it will submit the value > of > the checkbox with the form if the user has selected the checkbox. If it is > not selected, the browser will not send the value of the checkbox to the > server. If you ask for the checkbox-parameter in the request and it is not > present, you know, that the user has not selected the checkbox. > cu Frank > > -----Urspr?ngliche Nachricht----- > > Von: Andrew Steady [SMTP:[EMAIL PROTECTED]] > > Gesendet am: Donnerstag, 19. April 2001 12:47 > > An: [EMAIL PROTECTED] > > Betreff: null or empty string > > > > > > Hi, > > > > > > > > I have written a dynamic validation routine which is based upon only > > validating the fields that have been submitted and then "mopping > up" > > later. This only works because you can tell the difference > > > > between a field being submitted and left blank (value = "") and a field > > not > > being present in the request (value = null). > > > > > > > > This is true for input type="text" but is not true for input > > type="checkbox", has anyone come accross this problem before? any > > solutions ideas? > > > > > > > > Cheers, > > > > > > > > Andy S > > > ---------------------------- > Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene > Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung > reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. > Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, > Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser > E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den > bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht > der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so > bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. > ---------------------------- > For legal and security reasons the information provided in this e-mail is > not legally binding. Upon request we would be pleased to provide you with > a > legally binding confirmation in written form. Any form of unauthorised > use, > publication, reproduction, copying or disclosure of the content of this > e-mail is not permitted. This message is exclusively for the person > addressed or their representative. If you are not the intended recipient > of > this message and its contents, please notify the sender immediately. > --------------------------- > > > > > > > > ---------------------------- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. ---------------------------- For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. ---------------------------