FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Not understanding HTML form
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Not understanding HTML form [message #169433 is a reply to message #169430] Sun, 12 September 2010 18:25 Go to previous messageGo to previous message
MikeB is currently offline  MikeB
Messages: 65
Registered: September 2010
Karma:
Member
On Sep 12, 1:17 pm, Marious Barrier <marious.barr...@gmail.com> wrote:
> On 09/12/2010 02:06 PM, MikeB wrote:
>
>> However, on a 3rd iteration, without typing anything into any field,
>> the isset still evaluates to true, although the $_POST variable for
>> "action' shows a null field.  How can I then recognize that that field
>> is in fact not set? or is it set with nulls or what is going on here?
>
> Isset will evaluate to false only when a variable is a *PHP* null or it
> is not set. (null anyway too)


OK, I see it now. If I never enter a value in that field, on a 2nd
iteration, the isset() will also evaluate to true. so it does not
matter if I ever enter a value, just the fact that the form returns a
"null" value means the field is actually set for PHP. I guess I can
use the PHP function unset() to delete the variable from the array?

Hmmm back to the drawing board....

This stuff is hard and complicated. :(
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: Session Cache
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 19:50:12 GMT 2024

Total time taken to generate the page: 0.04703 seconds