Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/04/2010, 18:48
Avatar de dcreate
dcreate
 
Fecha de Ingreso: octubre-2009
Ubicación: Veracruz
Mensajes: 536
Antigüedad: 14 años, 6 meses
Puntos: 22
Respuesta: como recibir variables numericas de html a php

cuando le agregas un valor a una variable toma si es alfanumerica o numerica y lo para recuperarla es con $_POST. en tu codigo seria algo asi:

Código PHP:
Ver original
  1. <html>
  2. <body>
  3. <?php
  4. $i=$_POST['i'];
  5. $j=$_POST['j'];
  6. //con esto toman los valores antes enviados
  7. echo "<table border=5 cellspacing=5 width=24 height=42 bgcolor=#ffff55 bordercolor=#000000   >\n ";
  8. for ($i=1;$i<=7;$i++){
  9. echo "<tr>\n";
  10. for ($j=1;$j<=7;$j++){
  11. echo "<td>".$j*$i."</td>\n";
  12. }
  13. echo "</tr>\n";
  14. }
  15. echo "</table>";
  16. ?>
  17. </body>
  18. </html>


suerte