← Foro de PHP

Notice: Undefined variable

Hilo en el foro de PHP · 20 de Julio del 2004 · 1 respuestas
FranciscoGomez20 de Julio del 2004
Pregunta
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>

Respuestas 1

Gabriel Luraschi20 de Julio del 2004
1) QUE ES ESO??????????????????

2) EL CODIGO PHP QUE PUSISTE SE EJECUTA AL CARGAR ESE SCRIPT, DEBERIA EJECUTARLO AL ELVIAR EL FORMULARIO NO? SI ES Q NO ENTENDI MAL
¿Buscas más hilos como este? Mira el foro de PHP o usa el buscador.