Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • in reference to the isset($_POST), won't it always be set even if there was no POST data? Or does it depend on if it's HTTP POST vs HTTP GET? Commented Sep 14, 2011 at 23:11
  • @Ben you're correct, I've removed that example. I've added a demo link demonstrating my two methods. Commented Sep 14, 2011 at 23:33
  • The output in your demo is identical if a) I simply visit the page and b) if I submit the form with nothing clicked. As I mention in the question, I need to determine the special case when the POSTed data is empty AND the user has submitted the form rather than simply visited the page. Commented Sep 14, 2011 at 23:36
  • I think you misunderstand. Everything will be false upon going to the page because you've not submitted anything. If you don't submit anything, it remains false; however, if you select some of the checkboxes it changes to true. Commented Sep 14, 2011 at 23:45
  • I understand that, but again, my page takes action upon everything being false..., false = deletion, so I need to check what kind of false, false that they are there via a click, etc or false because they submitted an empty form. Commented Sep 15, 2011 at 2:11