Voy a poner el código para que no ocurran lios...
Ésta sería la del archivo foroweb.php:
Código HTML:
<html>
<head>
<title>PHP Kike Forum - Powered by Kike-Scripts</title>
<link rel="stylesheet" type="text/css" href="estilo.css">
</head>
<body>
<!-- Inicio del foro -->
<?php include("foro.php"); ?>
<!-- Fin del foro -->
</body>
</html>
Y esta otra la del archivo foro.php:
Código HTML:
<?php
// PHP Kike Forum v1.0
// ----------------------------------------------------
// Autor : Luis Enrique Díaz Jara
// Web : [url]http://www.kikescripts.mx.kz[/url]
// Email : [email][email protected][/email]
// ----------------------------------------------------
include("config.php");
include("funciones.php");
switch($accion) {
// -----------------------------------
// Para publicar nuevo tema
// -----------------------------------
case nuevotema:
echo "<form name='form' action='index.php' method='post'>";
echo "<input type='hidden' name='accion' value='publicar'>";
echo "<input type='hidden' name='tipo' value='tema'>";
echo "<table cellpadding='0' cellspacing='0' align='center' class='tablaform'>";
echo "<tr><td class='filacentro2' height='30'><span class='fuentepequeña'>";
echo "<a href='javascript:history.back(1)'> << Volver</a> | <a href='index.php'>Indice de temas</a>";
echo "</span></td></tr></table>";
echo "<table cellpadding='5' cellspacing='1' align='center' class='tablaform'>";
echo "<tr><td class='filatitulo'>Nuevo Tema</td></tr>";
echo "<tr><td class='filacentro1'>";
echo "<table width='100%' cellspacing='2' cellpadding='1' class='filacentro1'>";
echo "<tr><td class='fuentepequeña'>Nombre ó nick :</td>";
echo "<td width='75%'><input type='text' name='nombre' size='25' class='formulario'></td></tr>";
echo "<tr><td class='fuentepequeña'>E-mail :</td>";
echo "<td width='75%'><input type='text' name='email' size='25' class='formulario'></td></tr>";
echo "<tr><td class='fuentepequeña'>Página Web :</td>";
echo "<td width='75%'><input type='text' name='url' size='25' value='http://' class='formulario'></td></tr>";
echo "<tr><td class='fuentepequeña'>Tema :</td>";
echo "<td width='75%'><input type='text' name='tema' size='25' class='formulario'></td></tr>";
echo "<tr><td class='fuentepequeña'>Tu mensaje :</td>";
echo "<td width='75%'><textarea rows='10' name='mensaje' cols='35' class='formulario'></textarea></td></tr>";
echo "<tr><td height='30' class='fuentepequeña'><b>Emoticons</b></td><td height='30' width='75%'>";
echo "<a href=javascript:Smile('[:)]')><img src='ikon/sonrisa.gif' border='0'> ";
echo "<a href=javascript:Smile('[:(]')><img src='ikon/triste.gif' border='0'> ";
echo "<a href=javascript:Smile('[enojo]')><img src='ikon/enojado.gif' border='0'> ";
echo "<a href=javascript:Smile('[;)]')><img src='ikon/ginando.gif' border='0'> ";
echo "<a href=javascript:Smile('[cool]')><img src='ikon/cool.gif' border='0'> ";
echo "<a href=javascript:Smile('[:P]')><img src='ikon/lengua.gif' border='0'> ";
echo "<a href=javascript:Smile('[8)]')><img src='ikon/ojotes.gif' border='0'> ";
echo "<a href=javascript:Smile('[:D]')><img src='ikon/risa.gif' border='0'> ";
echo "<a href=javascript:Smile('[llorar]')><img src='ikon/llorando.gif' border='0'> ";
echo "<a href=javascript:Smile('[bien]')><img src='ikon/bien.gif' border='0'> ";
echo "<a href=javascript:Smile('[mal]')><img src='ikon/mal.gif' border='0'> ";
echo "<a href=javascript:Smile('[duda]')><img src='ikon/duda.gif' border='0'></td></tr> ";
echo "</table><tr><td align='right' class='filaabajo'>";
echo "<input type='submit' value='Publicar' class='formulario'></table></form>";
Publicidad();
break;
// -----------------------------------
// Para responder un mensaje
// -----------------------------------
case nuevarespuesta:
// Se verifica que el mensaje exista
if(!file_exists("mensajes/msg".$id.".php")) {
$error[] = $alerta[4];
}
// Si existe un error se muestra
if(sizeof($error) > 0) {
FatalError();
}
// Si todo esta bien mostramos el formulario
else {
echo "<form name='form' action='index.php' method='post'>";
echo "<input type='hidden' name='accion' value='publicar'>";
echo "<input type='hidden' name='tipo' value='respuesta'>";
echo "<input type='hidden' name='id' value='$id'>";
echo "<table cellpadding='0' cellspacing='0' align='center' class='tablaform'>";
echo "<tr><td class='filacentro2' height='30'><span class='fuentepequeña'>";
echo "<a href='javascript:history.back(1)'> << Volver</a> | <a href='index.php'>Indice de temas</a>";
echo "</span></td></tr></table>";
echo "<table cellpadding='5' cellspacing='1' align='center' class='tablaform'>";
echo "<tr><td class='filatitulo'>Publicar respuesta</td></tr>";
echo "<tr><td class='filacentro1'>";
echo "<table width='100%' cellspacing='2' cellpadding='1' class='filacentro1'>";
echo "<tr><td class='fuentepequeña'>Nombre ó nick :</td>";
echo "<td width='75%'><input type='text' name='nombre' size='25' class='formulario'>";
echo "</td></tr><tr><td class='fuentepequeña'>E-mail :</td>";
echo "<td width='75%'><input type='text' name='email' size='25' class='formulario'>";
echo "</td></tr><tr><td class='fuentepequeña'>Página Web :</td>";
echo "<td width='75%'><input type='text' name='url' size='25' value='http://' class='formulario'>";
echo "</td></tr><tr><td class='fuentepequeña'>Tema :</td>";
echo "<td width='75%'><input type='text' name='tema' size='25' value='$tema' class='formulario'>";
echo "</td></tr><tr><td class='fuentepequeña'>Tu mensaje :</td>";
echo "<td width='75%'><textarea rows='10' name='mensaje' cols='35' class='formulario'></textarea>";
echo "<tr><td height='30' class='fuentepequeña'><b>Emoticons</b></td><td height='30' width='75%'>";
echo "<a href=javascript:Smile('[:)]')><img src='ikon/sonrisa.gif' border='0'> ";
echo "<a href=javascript:Smile('[:(]')><img src='ikon/triste.gif' border='0'> ";
echo "<a href=javascript:Smile('[enojo]')><img src='ikon/enojado.gif' border='0'> ";
echo "<a href=javascript:Smile('[;)]')><img src='ikon/ginando.gif' border='0'> ";
echo "<a href=javascript:Smile('[cool]')><img src='ikon/cool.gif' border='0'> ";
echo "<a href=javascript:Smile('[:P]')><img src='ikon/lengua.gif' border='0'> ";
echo "<a href=javascript:Smile('[8)]')><img src='ikon/ojotes.gif' border='0'> ";
ETC....
Antes todo esto funcionaba, pero ahora no. El único cambio que yo he hecho ha sido cambiar la página principal que llama a foroweb.php, antes era un archivo *.htm y ahora es un archivo *.php.
AYUDA!