Código:
2.- tengo un fichero llamado head.php en el tengo una funcion de creacion de titulo web y abajito tengo un body y una tabla y cuando los incluyo en un fichero con la funcion include, primero me da el body y despues el <hea><title>Tituloweb</title><head>... por que?// Guardando Informacion Recibida
if ($opciones == "guardar")
{
// Validando si el usuario ya existe, si existe da error
$fp = @fopen("datos/$usernamewm.txt","r");
if ($fp)
{
include "head.php";
$titulo="UserName Existente";
tituloweb($titulo);
echo"<center>Lo sentimos pero este UserName ya Existe</center>";
include "pie.php";
}
// Si no existe Prosigue a guardar los datos
else
{
$fp=fopen("datos/$usernamewm.txt","w");
$datos="$usernamewm,$passwordwm,$nombrewm,$mailwm,$nombreweb,$urlweb,$desweb,$bannerweb,$votosin,$votosout";
fwrite($fp,$datos);
fclose($fp);
include "head.php";
$titulo="Datos Recibidos Satisfactoriamente";
tituloweb($titulo);
?>
<center>
<table cellspacing="0" cellpadding="0" border="0" width="80%">
<tbody>
<tr>
<td align=center><font size=3 face=verdana>Hemos recibido satisfactoriamente tus datos !!!</font></td>
<tr>
<td height=20></td>
<tr>
<td><font face=verdana size=2>Tus datos que recibimos fueron:<br><br><br><br>
<b>Username:</b> <? echo $usernamewm ?><br><br>
etc
etc
etc
Código:
Atte.function tituloweb($titulo)
{
$titlecodehtml="\n<head>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\">\n<title>$titulo</title>\n</head>\n";
echo $titlecodehtml;
}
echo "<html>\n";
echo "<body>";
etc
etc
etc
Gerzo Karim
<a href="http://www.centraljuegos.com">www.centraljuegos.com</a>


