<input type="checkbox" name="sexo" value="machito"<? if ( $datos['sexo'] == "machito" ) echo "checked"; ?>/>