Buenass!
necesito que crear variables de manera dinamica con un for, y que la mismas tengan distintos nombres. Para ello se me ocurrió utilizar el siguiente script que obviamente no funcionó, por eso estoy aquí!
Código PHP:
for ($i = 1; $i <= 5; $i++){
$variable&$i=$_POST['pos_grande_[$i]'];
}
echo $variable5;
esta es la parte del codigo que no me anda (y ya probé con $variable.$i, y no funcó)
lo que necesito obtener es que existan las variables: $variable1, $variable2, $variable3, $variable4 y $variable5. Y esto me va a dar como resultado que cada una tenga un valor de POST distinto:
Código PHP:
$variable1=$_POST['pos_grande_1'];
$variable2=$_POST['pos_grande_2'];
$variable3=$_POST['pos_grande_3'];
$variable4=$_POST['pos_grande_4'];
$variable5=$_POST['pos_grande_5'];
Espero que se haya entendido bien
Saludos y gracias d antemanoo!