Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/06/2005, 23:37
brozo
 
Fecha de Ingreso: mayo-2005
Mensajes: 7
Antigüedad: 18 años, 11 meses
Puntos: 0
Problema con Variables :-(

Hola soy muy novato en esto y estoy siguiendo un curso de http://www.nomaster-reloaded.com/tele/php.htm y pues trato de hacer los ejercicios en dreamwaver y todo pero no los ejecuta me aparese los siguiente
Notice: Undefined variable: uno in c:\Inetpub\wwwroot\prueba\salida.php on line 10
dato1
Notice: Undefined variable: dos in c:\Inetpub\wwwroot\prueba\salida.php on line 11
dato1
mi codigo es el siguiente:
---------------------------------------------------------------------
entrada.php
---------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<form action="salida.php" method="post" enctype="application/x-www-form-urlencoded" name="formulario" id="formulario">
<p>
<input name="uno" type="text" id="uno" size="3" maxlength="3">
dato 1
</p>
<p>
<input name="dos" type="text" id="dos" size="3" maxlength="3">
dato 2
</p>
<p>
<input type="submit" name="Submit" value="Enviar">
</p>
</form>
</body>
</html>


---------------------------------------------------------------
salida.php
---------------------------------------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php
echo $uno."dato1";
echo $dos."dato2";
?>
</body>
</html>




bueno ya probe todo no se ke este mas segun yo es por que no tengo activo los short_tags(). o no se cual sea elñ problema.