php - Make user fill at least 1 out of 3 fields to search -


i want user fill @ least 1 out of 3 fields in search form possible? here link

http://img.needforgaming.x10.mx/procurar.php

i dont want user have empty fields , search apper data...

in procurar.php file should apply check condition.

use below code:

if(isset($_request['btn_procurar'])){    if(empty($_request["cliente_procurar"]) && empty($_request["n24h_procurar"]) && empty($_request["ns24_procurar"])) {       echo "please fill @ least field";    } else {       //your code search , other    } } 

above code server side if want check client side use javascript.


Comments