Undefined Index

Oh well, at least it’s not something I imagined.

Thanks all. I used the isset method instead and it worked like a charm.

No, it does not work like a charm. It is doing absolutely nothing. Did you not read what I posted?

That’s like doing a test verifying if fire is hot. It is completely pointless. Fire is always hot just like form fields are always set.

What you are doing is basically asking if true is equal to true then do something. Does that make any sense to you?

Once again, trim the post array and then check for empty. Simple as that.

Ok. Makes sense. Please can you show me in the code how you think it should be done. I’m new to PHP so still trying to figure it all out.

Before I just hand you some code, look up the trim and empty function and then try a couple small code samples using them so you can understand how they work. The manual is your friend here.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.