I am trying to get this form to:
if any $_POST vars equals any other of the $_POST vars throw an error.
if it was just a few it wouldnt be an issue but I have about 20 or so
so if i wanted to do it I would have to go like
<?php
if($_POST['input1']==$_POST['input2'] || $_POST['input1']==$_POST['input3']){
die('whatever');
}
?>
But that’s not good coding (and it would take forever)
I thought about arrays and different ways…
but I am brain dead atm so I thought I could get some help..
thanks in advance
ps it would be nice to do it in PHP (server side) but Jquery is always an option.
1 Answer