Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/10/2007, 09:31
B4l4
 
Fecha de Ingreso: octubre-2007
Mensajes: 203
Antigüedad: 16 años, 6 meses
Puntos: 0
Re: Error al recoger variable con $GET

Bueno he hecho los cambios que me habeis dicho pero sigue sin volcar los resultados, el codigo ha quedado asi:

Formulario de envio de variable:

Código HTML:
<Table border="0" cellpadding="4" cellspacing="0" width="30%" align="center" bordercolor= "#000033">
	<tr>
       	<td width="45%" align="left"><form action="test.php?valor=13" method="post"><input type="submit" value="Granja" /></form>
		<td width="45%" align="right"><form action="granja_poner.php" method="post"><input type="submit" value="+1 lvl" /></form>
	</tr> 
</Table> 

Pagina que recibe la variable enviada y la imprime:

Código PHP:
<?php

//Coge variables GET & POST
$variable$_POST["valor"];
echo 
$variable;
$variable3$_POST["edificio"];
echo 
"prueba";
?>

el texto prueba lo imprime bien pero la variable no, no entiendo el porque, alguna idea? Gracias

si hago $_POST["valor"]; tampoco me printa nada