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.
---------------------------



Reply via email to