Código PHP:
    <form action="php/infocliente.php" method="POST" name="formulario" >
      <div align="center"></div>
      <table width="329" height="177" border="2" align="center" bordercolor="#0000FF" bgcolor="#FFFFCC" style="border:2px solid #000000;">
 
        <tr>
          <td align="left"><span class="Estilo2">Nombre Cliente:</span>
              <input type="text" size="30" maxlength="30"name="nombre" />          </td>
        </tr>
        <tr>
          <td align="left"><span class="Estilo2">Apellidos:</span>
              <input type="text" size="30" maxlength="30"name="apellidos" />          </td>
        </tr>
        <tr>
          <td align="left"><span class="Estilo2">DNI:</span>
              <input type="text" size="10" maxlength="10"name="dni" />          </td>
        </tr>
        <tr>
          <td height="30"><div align="center"><span class="Estilo6">
            <input name="busqueda" type="radio" value="nom" checked>
            Buscar por Nombre            
            <input name="busqueda" type="radio" value="dni">
          Buscar por DNI </span></div></td>
        </tr>
        <tr>
          <td height="32" align="center"><input name="submit" type="submit" value="Consultar" /></td>
        </tr>
        <tr>
          <td align="center">          </tr>
      </table>
    </form> 
    Para comprobar si se ha seleccionado uno o otro no se haria asi??
Código PHP:
  
if( Array([busqueda])=>dni && $dni==NULL ){
 
?>
    <script language="JavaScript">
    alert("Debes rellenar el campo DNI.");
    document.location=('../buscarcliente.php');
    </script>”;  
 
<?php    
 
if((Array([busqueda])=>nom) && ($nombre==NULL|$apellidos==NULL)){
 
?>
    <script language="JavaScript">
    alert("Debes rellenar los campos nombre y apellido.");
    document.location=('../buscarcliente.php');
    </script>”;  
    
<?php    
 
