how to create condition in php with and / or
<p>I am trying to make a condition in php for this situation:</p>

<p>You can choose for a radio input or checkbox input. 
No matter what you choose, but if you choose one of them, it may not be empty.</p>

<pre><code>$quickpolltype = "radio"; // set to "radio" or "checkbox"; radio is one choice, checkbox is multiple choices
</code></pre>

<p>I have seperated the 2 conditions now like below:</p>

<pre><code>if($quickpolltype == "radio" and $_POST['radiovote'] != '') {
// do something
}
if($quickpolltype == "checkbox" and $_POST['checkboxvote'] != '') {
// do something
}
</code></pre>

<p>what i want to achieve:</p>

<p>No matter what you choose as type in <code>$quickpolltype</code>, if the value of one of them is not empty --> do something</p>

<p>So how can i combine those 2 conditions in 1 condition, whatever quickpolltype is choosen?</p>