I have a form which I need to fill in one field. I am trying but not having any success.
Please point to me where I am doing it wrong.
if($text1=='' && $text2=='' && ($text3!='' || $text4!='' || $text5!='' || $text6!='')){
$abc->redirect('../xxxx.php');
exit;
}
<tr>
<td>title: $</td>
<td><input type="text" id="dailyprice" name="text1" style="height: 25px; border: 1px solid #888; width: 80px;"></td>
<td>Desc: $</td>
<td><input type="text" id="weeklyprice" name="text2" style="height: 25px; border: 1px solid #888; width: 80px;"></td>
</tr>
<tr>
<td>Daily Price: $</td>
<td><input type="text" id="dailyprice" name="text3" style="height: 25px; border: 1px solid #888; width: 80px;"></td>
<td>Weekly Price: $</td>
<td><input type="text" id="weeklyprice" name="text4" style="height: 25px; border: 1px solid #888; width: 80px;"></td>
</tr>
<tr>
<td>Weekend Price: $</td>
<td><input type="text" id="weekendprice" name="text5" style="height: 25px; border: 1px solid #888; width: 80px;"></td>
<td>Monthly Price: $</td>
<td><input type="text" id="monthlyprice" name="text6" style="height: 25px; border: 1px solid #888; width: 80px;"></td>
</tr>
Thanks
If I understand correctly, then try something like this.