How can I define certain posts only if a variable equals a certain number?
<p>I'm trying to define certain form posts only if the variable <code>$num = 2</code> but it doesn't work.</p>

<pre><code>if ($num = 2); {
$quant1 = $_POST['Quantity1'];
$item1 = $_POST['Item1'];
$cond1 = $_POST['Condition1'];
    }
</code></pre>

<p>I get undefined errors when <code>$num != 0</code></p>
