Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/04/2009, 09:37
SeaPirates
 
Fecha de Ingreso: enero-2009
Ubicación: España
Mensajes: 786
Antigüedad: 15 años, 3 meses
Puntos: 9
Error al mostrar las variables

Tengo este script:

Código PHP:
<?php 
if (!isset($_POST['codigo'])){ 
echo 
"<form name='miFormulario' method='post'> 
<input type='text' name='codigo'> 
<input type='submit' value='Modificar' name='Button'> 
</form>" 
} else { 
echo 
$_POST['codigo']; 
}
Pero me tira
Cita:
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /home/webcindario/h/a/havvos/index1.php on line 7
Lo que pretendo es acer un simple formulario que permita mostrar la variable, pero me tira ese error, que hay mal?