At 1:23 PM -0800 12/2/07, Casey wrote:
On Dec 2, 2007 1:08 PM, tedd <[EMAIL PROTECTED]> wrote:
You don't need to do anything.
When it's submitted:
That's true unless you're pulling data in from somewhere else (i.e., a dB).
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.c
On Dec 2, 2007 1:08 PM, tedd <[EMAIL PROTECTED]> wrote:
> At 12:36 PM -0600 12/2/07, Larry Garfield wrote:
> >First of all, using "y" and "n" for boolean values (such as a checkbox) is
> >very sloppy. "n" is boolean True. A boolean value should evaluate correctly
> >in a boolean context. For tha
At 12:36 PM -0600 12/2/07, Larry Garfield wrote:
First of all, using "y" and "n" for boolean values (such as a checkbox) is
very sloppy. "n" is boolean True. A boolean value should evaluate correctly
in a boolean context. For that, you should use 1 and 0 for your values.
What I usually do i
nice!
but to avoid confusion it should read (assuming that $checked is a boolean
variable):
/>
IMHO
Larry Garfield wrote:
>
> First of all, using "y" and "n" for boolean values (such as a checkbox) is
> very sloppy. "n" is boolean True. A boolean value should evaluate
> correctly
> in a b
Just to add my two cents -
I don't think it matters much what tokens you use to represent true
or false, since you're going to be explicitly checking them on the
server end anyway. I can't see much difference in principle between,
for example:
if ($_GET['foo'] == 'y')...
and
First of all, using "y" and "n" for boolean values (such as a checkbox) is
very sloppy. "n" is boolean True. A boolean value should evaluate correctly
in a boolean context. For that, you should use 1 and 0 for your values.
What I usually do is this:
/>
Then when it gets submitted, foo w
Stephen wrote:
> Ronald Wiplinger wrote:
>> How can I force a "n" for not checked in the input field? or how can I
>> solve that?
>>
> Either use radio buttons or a drop down for the input field.
Thanks!
>
> Stephen
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I did once, if I remember once, this "strategy":
>
If checked, you will have value "y". Though, if unchecked, or it was
checked and visitor unchecked, the value should be "n".
;)
-afan
Ronald Wiplinger wrote:
I have now tried to add many of the security hints on a web page and
come to a pr
Ronald Wiplinger wrote:
How can I force a "n" for not checked in the input field? or how can I
solve that?
Either use radio buttons or a drop down for the input field.
Stephen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
9 matches
Mail list logo