Notice: Undefined variable
Hola. Tengo un PHP que me da el Mensaje:
Notice: Undefined variable: empresa in C:........
Alguien me dijo que era problema de como esta configurado Apache y PHP sobre Windows.
el PHP es:
<html>
<body>
<head>
<link href="./css/online.css" rel="stylesheet" type="text/css">
</head>
</body>
<form action="prueba1.php" method='POST'>
<table name=tabla1>
<tr>
<td colspan=6 class=titulo> Prueba de PHP </td>
</tr>
<tr>
<td class=desp_dato> Empresa: </td>
<td class=desp_dato><input type=text name=empresa id=empresa></td>
</tr>
<tr><td colspan=6 align=right><input type=submit value="Registrar"></td></tr>
</table>
<?php
echo "Empresa: $empresa";
?>
</form>
</html>
Notice: Undefined variable: empresa in C:........
Alguien me dijo que era problema de como esta configurado Apache y PHP sobre Windows.
el PHP es:
<html>
<body>
<head>
<link href="./css/online.css" rel="stylesheet" type="text/css">
</head>
</body>
<form action="prueba1.php" method='POST'>
<table name=tabla1>
<tr>
<td colspan=6 class=titulo> Prueba de PHP </td>
</tr>
<tr>
<td class=desp_dato> Empresa: </td>
<td class=desp_dato><input type=text name=empresa id=empresa></td>
</tr>
<tr><td colspan=6 align=right><input type=submit value="Registrar"></td></tr>
</table>
<?php
echo "Empresa: $empresa";
?>
</form>
</html>
