set a condition for empty inputs
<p>I am trying to set a condition whereby an error is echoed if not all fields are filled out. The code I have written seems to always output true.</p>

<p>What am I doing wrong?</p>

<pre><code>if (empty($oldpassword)||empty($newpassword)||empty($repatnewpassword))
</code></pre>
