Ver Mensaje Individual
  #7 (permalink)  
Antiguo 17/04/2015, 07:40
Avatar de Perr0
Perr0
 
Fecha de Ingreso: mayo-2005
Ubicación: Santiago de Chile, Chile
Mensajes: 676
Antigüedad: 19 años
Puntos: 79
Exclamación Respuesta: Contador php dentro de javascript

como idea y para hacerlo en PHP

Código:
<style>
.stDiv{
	background-color:yellow;
	padding:10px;
	border:2px solid black;
	margin-bottom:10px;
}
</style>

<?
$divs = array( "País", "Sexo", "Edad" );
$select_1 = array( ""=>"", "1"=>"Argentina", "2"=>"Bolivia", "3"=>"Chile", "4"=>"Perú" );
$select_2 = array( ""=>"", "hom"=>"Hombre", "muj"=>"Mujer" );
$select_3 = array( ""=>"", "menor"=>"Menor de 18 años", "medio"=>"Entre 19 y 40", "viejo"=>"mayor de 40 años" );

echo "<DIV class=stDiv>";
crear_select($divs[0], $select_1);
echo "</DIV>\n";

echo "<DIV class=stDiv>";
crear_select($divs[1], $select_2);
echo "</DIV>\n";

echo "<DIV class=stDiv>";
crear_select($divs[2], $select_3);
echo "</DIV>\n";

function crear_select( $título, $arreglo ){
	echo $título." \n";
	echo "<SELECT name=\"".$título."\">\n";
	unset($i, $t);
	foreach( $arreglo as $i=>$t ){
		echo "<OPTION value=\"".$i."\">".htmlentities(utf8_encode($t))."</OPTION>\n";
	}
	echo "</SELECT>\n";
}
?>
__________________
Numerador Mp3 en Access =)
http://www.mediafire.com/download/r9...pdw/mp3(2).zip