Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/05/2004, 16:45
arturonline
 
Fecha de Ingreso: abril-2004
Mensajes: 3
Antigüedad: 20 años
Puntos: 0
Pregunta problema con include

a ver si alguien me puede ayudar con este problema. Tengo los siguientes archivos en el mismo directorio:

config.php
Código PHP:
<?php

function pass_form()
{
?>


<form action="index.html" method="post">
<h3>Por favor, inicia sesión</h3>
Nombre: <input type="text" name="nombre de usuario"><br>
Contraseña: <input type="password" name="Contraseña"><br><br>
<input type="submit" name="submit" value="iniciar sesión">
</form>

<?
}
?>
Y el archivo index.html:

Código HTML:
<html>

<head>
<title>Portada Juegos</title>
</head>

<body>
<h1><u>Base de Datos de Juegos</u></h1>

<?php include("config.php"); ?>
<?php pass_form(); ?> 

</body>
</html> 
Pero no hay manera de que index.html me muestre el formulario de la contraseña que se encuentra en config.php

¿Que estoy haciendo mal?