My form consists of different types of inputs.
Is there a way of checking if form has been submitted with any user input?
My form consists of different types of inputs.
Is there a way of checking if form has been submitted with any user input?
Is there a way of checking if an entire form is blank?
Without checking each individual input?
In short. No there is not.
You could treat $_POST
as an array and check each entry in a loop, but you must be aware of items that are automatically filled, like $_POST['submit']
or something similar.