Ok, sigo sin comprender mucho el problema pero veamos:
Código PHP:
Ver original<?php
if ($_POST)
{
if(isset($_POST['txtNom'])) {
$nombre=$_POST['txtNom'];
}
else
{
$nombre="%";
}
if(isset($_POST['txtCI'])) {
$cedula=$_POST['txtCI'];
}
else
{
$cedula="%";
}
include '../Sistema/conexion.php';
$sql="SELECT * FROM alumnos WHERE Cedula like '$cedula' or Nombre like '$nombre'";
{
echo "[".$valor['Cedula']."]-[".$valor['Nombre']."]";
}
else
{
echo "<br>no hay registro de ese alumno";
}
}
?>
<form method="post" enctype="multipart/form-data" id="busqueda" style="display:none" target="_self" action="">
<label for="textfield11">Por Cedula</label>
<input type="checkbox" id="cedula" name="cedula" value="cedula" onclick="txtCI.disabled=!this.checked">
/
<label for="textfield11">Por Nombre</label>
<input type="checkbox" id="nombre" name="nombre" value="nombre" onclick="txtNom.disabled=!this.checked">
<br>
<label for="textfield11">Nº de Cedula:</label>
<input name="txtCI" type="text" id="txtCI" disabled>
<label for="textfield11">nombre:</label>
<input name="txtNom" type="text" id="txtNom" disabled>
<p>
<input name="Buscar" type="submit" id="Buscar" value="Buscar">
</p>
</form>