Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/01/2011, 04:05
albertrc
 
Fecha de Ingreso: febrero-2009
Mensajes: 443
Antigüedad: 15 años, 2 meses
Puntos: 1
passar constante de un formulario a otro es possible

ma falta el ? en el titulo
he hecho de diferentes maneras pero no me sale

Código HTML:
Ver original
  1. <form action="formulario.php" method="post">
  2.     <?php
  3. define('A', 100);
  4. ?>
  5.     <table border="0">
  6.         <tr>
  7.             <td>a</td>
  8.             <td align="center"><input type="text" name="[HIGHLIGHT="PHP"]<?php A ?>
" size="3" maxlength="3" value="
Código PHP:
Ver original
  1. <?php A ?>
"/></td>
</tr>

<tr>
<td colspan="8" align="center"><input type="submit" value="Submit Order"/></td>
</tr>
</table>
</form>[/HIGHLIGHT]

Código PHP:
Ver original
  1. <?
  2.    $a = $HTTP_POST_VARS['A'];
  3.   echo $a.' a<br/>';
  4. ?>

Última edición por albertrc; 21/01/2011 a las 04:21