User Tools

Site Tools


informatica:linux:php:ejemplos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatica:linux:php:ejemplos [2009/11/05 07:47] – editor externo 127.0.0.1informatica:linux:php:ejemplos [2015/04/13 20:19] (current) – external edit 127.0.0.1
Line 16: Line 16:
   echo $_POST['variable'];   echo $_POST['variable'];
   ?>   ?>
 +
 +===== Con vectores array =====
 +  <html>
 +  <FORM ACTION="procesa.php" METHOD="POST">
 +  Variable:<INPUT TYPE="text" NAME="variable[]"><BR>
 +  Variable:<INPUT TYPE="text" NAME="variable[]"><BR>
 +  <INPUT TYPE="submit" VALUE="Enviar">
 +  </FORM>
 +  </html>
 +
 +  <?
 +  $array = $_POST['variable'];
 +  echo $array[0];
 +  echo $array[1];
 +  ?>
 +
 +
  
informatica/linux/php/ejemplos.1257407274.txt.gz · Last modified: 2015/04/13 20:19 (external edit)