Welcome to my site!

Checking for Multiple $_POST Variables - PHP

I just stumbled across this fantastic snippet of code for check for the existence of multiple variables with the global $_POST.

Previously I would have check the variables by stinging together multiple isset functions like so.

However, the new snippet I recently found is great for accomplishing this check in a much more efficient way.

This will really make checking for the existence of POST variables much easier.

Cheers!

Categories: PHP, Web Development

Comments

Your email address will not be published. Required fields are marked *