Re: Checkbox

From: Date: Thu, 27 Mar 2003 09:14:27 +0000
Subject: Re: Checkbox
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-141237@lists.php.net to get a copy of this message
Tim Burden wrote: > Just using the readonly flag in the input tag is the easiest method, I > think. > ----- Original Message ----- > From: "Reuben D. Budiardja" <reubendb@innovativethought.com> > Newsgroups: php.general > To: "CPT John W. Holmes" <holmes072000@charter.net>; "shaun" > <shaun@mania.plus.com> > Cc: <php-general@lists.php.net> > Sent: Wednesday, March 26, 2003 2:26 PM > Subject: Re: [PHP] Checkbox > On Wednesday 26 March 2003 02:11 pm, CPT John W. Holmes wrote: > > >On Wednesday 26 March 2003 01:43 pm, CPT John W. Holmes wrote: > > > > > is it possible to have a checkbox that if it is specified to be > > checked > > > > > when the page is being formulated then it cannot be unchecked? > > > > > > > > No. No... No. > > > > > > > > If you already know you don't want it to be unchecked, then don't show > > > > a checkbox. That's why we have PHP, so you can create your page > > DYNAMICALLY > > > > and not show bits and pieces when you don't need to. > > > > > > Although that is theoretically correct, there can be some reason why one > > would > > > want to display a checkbox anyway. Sometimes it can be clearer for the > > user> > to see the GUI, asthetic reason, etc, etc. > > True. In that case, though, I would just show an image of a checked check > > box. The end result will be the same to the user, they will just think > it's > > a checkbox they cannot uncheck. > But isn't it so much easier to type in that one line HTML + javascript than > trying to get an image of a checked check box...... unless you have that > handy, you'd have to eg. take a snapshot, or draw something, then save the > file as an image file.......hmm... > and as you said, the effect will be the same to the user anyway.... > RDB I don't think showing a checkbox will clear things up for the user. Imagine, the use would probably get really annoyed not being able to check that god damn checkbox. I say put some text there instead. Eg. "You can't do this, because of this."

« previous php.general (#141237) next »