My problem is basically that i have something like this:
if (!empty($_POST['field1'])OR !empty($_POST['field2']) OR !empty($_POST['field3'] ))
{
// SUBMIT FORM
} else {
// display error message
}
My problem is that i dont really know how to submit a form using code since im not really experienced in PHP.
I'm using all the !empty($_POST['field1']
since i have 16 input fields in my form and the first 5 are ALWAYS required but in the other 11 input fields a minimal of 1 input is required, i thought this was the most simple solution.
A little question on the side, i'd also like to know how to stop a form from submitting to another page so i can write an error or something on the page it was.