if ANY $_POST equals another $_POST die('error');?
<p>I am trying to get this form to:</p>

<p>if any $_POST vars equals any other of the $_POST vars throw an error.</p>

<p>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</p>

<pre><code>    &lt;?php 
    if($_POST['input1']==$_POST['input2'] || $_POST['input1']==$_POST['input3']){
die('whatever');
}

    ?&gt;
</code></pre>

<p>But that's not good coding (and it would take forever)
I thought about arrays and different ways...</p>

<p>but I am brain dead atm so I thought I could get some help..
thanks in advance</p>

<p>ps it would be nice to do it in PHP (server side) but Jquery is always an option.</p>
