if ANY $_POST equals another $_POST die('error');?

mishoney

New Member
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 soso if i wanted to do it I would have to go like\[code\] <?php if($_POST['input1']==$_POST['input2'] || $_POST['input1']==$_POST['input3']){die('whatever');} ?>\[/code\]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 advanceps it would be nice to do it in PHP (server side) but Jquery is always an option.
 
Back
Top