Foros del Web » Programando para Internet » PHP »

Problema foro PHP con netscape 6 y 7.0

Estas en el tema de Problema foro PHP con netscape 6 y 7.0 en el foro de PHP en Foros del Web. Hola :) , No se pueden escribir mensajes en mi foro PHP con el navegador Netscape 6.0 y 7.0. <a href='ir.asp?http://www.uesabadell.org/forum/index.php' target='_blank'>http://www.uesabadell.org/forum/index.ph...</a> Problema con el ...
  #1 (permalink)  
Antiguo 09/07/2002, 17:10
 
Fecha de Ingreso: julio-2002
Mensajes: 1
Antigüedad: 15 años, 5 meses
Puntos: 0
Problema foro PHP con netscape 6 y 7.0

Hola :) ,
No se pueden escribir mensajes en mi foro PHP con el navegador Netscape 6.0 y 7.0.
<a href='ir.asp?http://www.uesabadell.org/forum/index.php' target='_blank'>http://www.uesabadell.org/forum/index.ph...</a>
Problema con el formulario iframe?
Alguna sugerencia?
Este es el código de la página.
gracias.

&lt;?
include&quot;header.php&quot;;
echo&quot;&lt;br&gt;&lt;br&gt;&lt;br&gt;&quot;;
function parser($cadena){
global $conexion,$prefijo;
$result=mysql_query(&quot;SELECT * FROM &quot;.$prefijo.&quot;_malas_palabras&quot;,$conex ion);
while($row=mysql_fetch_row($result)){
$cadena = ereg_replace(&quot;$row[1]&quot;,&quot;$row[2]&quot;,$cadena);
}
$cadena = ereg_replace(&quot;'&quot;, &quot;''&quot;, $cadena);
return $cadena;
}
if (!isset($que)){
echo&quot;&lt;center&gt;Como llegaste hasta aqui?&lt;/center&gt;&quot;;
include&quot;footer.php&quot;;
die;
}
if ($que=='guardar'){
if ($mensaje=='&lt;FONT face=verdana size=-1&gt;&lt;/FONT&gt;' || $nombre=='' || $titulo==''){echo&quot;&lt;br&gt;&lt;br&gt;&lt;br& gt;&lt;center&gt;&quot;._CREARERROR1.&quot;&lt;br& gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;input class=\&quot;clsButton\&quot; type=\&quot;button\&quot; value=\&quot;Volver\&quot; OnClick=\&quot;javascript:history.back()\&quot;&gt ;&lt;/center&gt;&quot;; }
else{
$mensaje=parser($mensaje);
$titulo=parser($titulo);
$nombre=parser($nombre);
if(!isset($papi)){$papi=0;}
$result = mysql_query(&quot;SELECT anonimos FROM &quot;.$prefijo.&quot;_foros where id='$fid'&quot;,$conexion);
$row = mysql_fetch_row($result);
if(!isset($fpusuario) &amp;&amp; $row[0]==0){echo&quot;&lt;br&gt;&lt;br&gt;&lt;center&gt;& quot;._CREARMSG2.&quot;&lt;br&gt;&lt;br&gt;&lt;br& gt;&lt;br&gt;&lt;a href=\&quot;index.php?fid=$fid\&quot;&gt;&lt;img src=\&quot;img/$lenguaje/aceptar.gif\&quot; border=0 align=absmiddle&gt;&lt;/a&gt;&lt;/center&gt;&quot;;}
else{$result = mysql_query(&quot;INSERT INTO &quot;.$prefijo.&quot;_mensajes (id,f_id,autor,mensaje,fecha,padre,titulo) VALUES ('', '$fid','$nombre','$mensaje',NOW(),'$papi','$titulo ') &quot;,$conexion);

/************************************************** *******/
/* codigo añadido para el tema de mensajes nuevos ********/
/************************************************** *******/
$result2 = mysql_query(&quot;SELECT nick FROM &quot;.$prefijo.&quot;_usuarios &quot;,$conexion);
while ($row = mysql_fetch_row($result2) ) {
if ($row[0] != $nombre){
if ($papi != 0) {
$result = mysql_query(&quot;INSERT INTO &quot;.$prefijo.&quot;_mensajes_nuevos (id_mensaje, usuario) VALUES ('$papi', '$row[0]') &quot;,$conexion);
} else {
$result = mysql_query(&quot;INSERT INTO &quot;.$prefijo.&quot;_foros_nuevos (id_foro, usuario) VALUES ('$fid', '$row[0]')&quot;, $conexion);
}
}
}
/************************************************** *******/

echo&quot;&lt;br&gt;&lt;br&gt;&lt;center&gt;&lt;b& gt;&quot;;
if($papi==0)echo&quot;&quot;._TOPICO.&quot;&quot;;
else echo&quot;&quot;._MENSAJE.&quot;&quot;;
echo&quot; &quot;._CREADO.&quot;!&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;input class=\&quot;clsButton2\&quot; type=\&quot;button\&quot; value=\&quot;Aceptar\&quot; OnClick=\&quot;javascript:location='$retorno_url'\ &quot;&gt;&lt;/center&gt;&quot;;
}
}
}

if ($que=='topico' || $que=='mensaje'){
$result = mysql_query(&quot;SELECT anonimos,abierto FROM &quot;.$prefijo.&quot;_foros where id='$fid'&quot;,$conexion);
$row = mysql_fetch_row($result);
if($row[1]==0){echo&quot;&lt;br&gt;&lt;br&gt;&lt;center&gt;& quot;._INDEXMSG3.&quot;&lt;/center&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&quot;; include&quot;footer.php&quot;; exit();}
if(!isset($fpusuario) &amp;&amp; $row[0]==0)echo&quot;&lt;br&gt;&lt;br&gt;&lt;center&gt;&q uot;._CREARMSG2.&quot;&lt;br&gt;&lt;br&gt;&lt;br&g t;&lt;br&gt;&lt;a href=\&quot;javascript:history.back()\&quot;&gt;&l t;img src=\&quot;img/$lenguaje/aceptar.gif\&quot; border=0 align=absmiddle&gt;&lt;/a&gt;&lt;/center&gt;&quot;;
else{
echo&quot;
&lt;script language=\&quot;JavaScript\&quot;&gt;
&lt;!-- Hide from older browsers...
function FormatText(command, option){
frames.mensaje.document.execCommand(command, true, option);
frames.mensaje.focus();
}
// --&gt;
&lt;/script&gt;
&lt;table width=500 cellspacing=1 cellpadding=2 align=center bgcolor=#CCCCCC&gt;
&lt;tr&gt;
&lt;td bgcolor=FFFFFF&gt;&lt;center&gt;&lt;b&gt;&quot;;
if ($que=='topico'){echo&quot;&quot;._CREARTOPICO.&qu ot;&quot;; $retorno_url=&quot;index.php?fid=$fid&quot;;}
elseif($que=='mensaje'){echo&quot;&quot;._CREARMEN SAJE.&quot;&quot;; $retorno_url=&quot;index.php?fid=$fid&amp;up=$padr e&quot;;}
echo&quot;&lt;/b&gt;&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td bgcolor=EEEEEE&gt;
&lt;form name=\&quot;crear\&quot; method=\&quot;post\&quot; action=\&quot;crear.php?que=guardar\&quot;&gt;
&lt;input type=\&quot;hidden\&quot; name=\&quot;retorno_url\&quot; value=\&quot;$retorno_url\&quot;&gt;
&lt;table width=\&quot;300\&quot; border=\&quot;0\&quot; cellpadding=\&quot;3\&quot; cellspacing=\&quot;0\&quot;&gt;
&lt;tr&gt;&lt;td colspan=2&gt;&quot;._CREARMSG1.&quot;&lt;br&gt;&lt ;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=\&quot;left\&quot; valign=\&quot;middle\&quot;&gt;&quot;._NOMBRE.&quo t;:&lt;/td&gt;
&lt;td&gt;&quot;;
if(isset($fpusuario)){
echo&quot;$infocookie[0]&quot;;
}
else echo&quot;&quot;._ANONIMO.&quot;&quot;;
echo&quot;&lt;/td&gt;
&lt;/tr&gt;&quot;;

if ($que=='topico')echo&quot;
&lt;tr&gt;
&lt;td align=\&quot;left\&quot; valign=\&quot;middle\&quot;&gt;&lt;b&gt;&quot;._TI TULO.&quot;:&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;
&lt;input class=\&quot;clsTextbox\&quot; type=\&quot;text\&quot; name=\&quot;titulo\&quot;&gt;
&lt;/td&gt;
&lt;/tr&gt;&quot;;
echo&quot;&lt;tr&gt;
&lt;td align=\&quot;left\&quot; valign=\&quot;top\&quot;&gt;&lt;b&gt;&quot;._MENSA JE.&quot;:&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;

&lt;table width=\&quot;100%\&quot; border=\&quot;0\&quot; cellspacing=\&quot;0\&quot; cellpadding=\&quot;0\&quot;&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;img src=\&quot;img/post_button_cut.gif\&quot; width=\&quot;25\&quot; height=\&quot;24\&quot; align=\&quot;absmiddle\&quot; OnClick=\&quot;FormatText('cut')\&quot; style=\&quot;cursor: hand;\&quot; alt=\&quot;Tallar\&quot;&gt;
&lt;img src=\&quot;img/post_button_copy.gif\&quot; width=\&quot;25\&quot; height=\&quot;24\&quot; align=\&quot;absmiddle\&quot; OnClick=\&quot;FormatText('copy')\&quot; style=\&quot;cursor: hand;\&quot; alt=\&quot;Copiar\&quot;&gt;
&lt;img src=\&quot;img/post_button_paste.gif\&quot; width=\&quot;25\&quot; height=\&quot;24\&quot; align=\&quot;absmiddle\&quot; OnClick=\&quot;FormatText('paste')\&quot; style=\&quot;cursor: hand;\&quot; alt=\&quot;Enganxar\&quot;&gt;
&lt;img src=\&quot;img/post_button_bold.gif\&quot; width=\&quot;25\&quot; height=\&quot;24\&quot; align=\&quot;absmiddle\&quot; alt=\&quot;Negreta\&quot; OnClick=\&quot;FormatText('bold', '')\&quot; style=\&quot;cursor: hand;\&quot;&gt;
&lt;img src=\&quot;img/post_button_italic.gif\&quot; width=\&quot;25\&quot; height=\&quot;24\&quot; align=\&quot;absmiddle\&quot; alt=\&quot;Cursiva\&quot; OnClick=\&quot;FormatText('italic', '')\&quot; style=\&quot;cursor: hand;\&quot;&gt;
&lt;img src=\&quot;img/post_button_underline.gif\&quot; width=\&quot;25\&quot; height=\&quot;24\&quot; align=\&quot;absmiddle\&quot; alt=\&quot;Subratllat\&quot; OnClick=\&quot;FormatText('underline', '')\&quot; style=\&quot;cursor: hand;\&quot;&gt;
&lt;img src=\&quot;img/post_button_left_just.gif\&quot; width=\&quot;25\&quot; height=\&quot;24\&quot; align=\&quot;absmiddle\&quot; OnClick=\&quot;FormatText('JustifyLeft', '')\&quot; style=\&quot;cursor: hand;\&quot; alt=\&quot;Alinear a l`esquerra\&quot;&gt;
&lt;img src=\&quot;img/post_button_centre.gif\&quot; width=\&quot;25\&quot; height=\&quot;24\&quot; align=\&quot;absmiddle\&quot; border=\&quot;0\&quot; alt=\&quot;Centrar\&quot; OnClick=\&quot;FormatText('JustifyCenter', '')\&quot; style=\&quot;cursor: hand;\&quot;&gt;
&lt;img src=\&quot;img/post_button_right_just.gif\&quot; width=\&quot;25\&quot; height=\&quot;24\&quot; align=\&quot;absmiddle\&quot; OnClick=\&quot;FormatText('JustifyRight', '')\&quot; style=\&quot;cursor: hand;\&quot; alt=\&quot;Alinear a la dreta\&quot;&gt;
&lt;img src=\&quot;img/post_button_list.gif\&quot; width=\&quot;25\&quot; height=\&quot;24\&quot; align=\&quot;absmiddle\&quot; border=\&quot;0\&quot; alt=\&quot;Llista\&quot; OnClick=\&quot;FormatText('InsertUnorderedList', '')\&quot; style=\&quot;cursor: hand;\&quot;&gt;
&lt;img src=\&quot;img/post_button_outdent.gif\&quot; width=\&quot;25\&quot; height=\&quot;24\&quot; align=\&quot;absmiddle\&quot; OnClick=\&quot;FormatText('Outdent', '')\&quot; style=\&quot;cursor: hand;\&quot; alt=\&quot;Reduir sagnia\&quot;&gt;
&lt;img src=\&quot;img/post_button_indent.gif\&quot; width=\&quot;25\&quot; height=\&quot;24\&quot; align=\&quot;absmiddle\&quot; border=\&quot;0\&quot; alt=\&quot;Aumentar sangnia\&quot; OnClick=\&quot;FormatText('indent', '')\&quot; style=\&quot;cursor: hand;\&quot;&gt;
&lt;img src=\&quot;img/post_button_hyperlink.gif\&quot; width=\&quot;25\&quot; height=\&quot;24\&quot; align=\&quot;absmiddle\&quot; border=\&quot;0\&quot; alt=\&quot;Crear hipervíncle\&quot; OnClick=\&quot;FormatText('createLink')\&quot; style=\&quot;cursor: hand;\&quot;&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;iframe class=\&quot;texto\&quot; src=\&quot;blank.html\&quot; id=\&quot;mensaje\&quot;&gt;&lt;/iframe&gt;

&lt;script language=\&quot;javascript\&quot;&gt;
frames.mensaje.document.designMode = \&quot;On\&quot;;
&lt;/script&gt;
&lt;br&gt;
&lt;input type=\&quot;hidden\&quot; name=\&quot;mensaje\&quot; value=\&quot;\&quot;&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=\&quot;left\&quot; valign=\&quot;top\&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;td align=\&quot;right\&quot;&gt;
&lt;input class=\&quot;clsButton\&quot; type=\&quot;button\&quot; value=\&quot;Cancelar\&quot; OnClick=\&quot;javascript:history.back()\&quot;&gt ;
&lt;input type=\&quot;submit\&quot; value=\&quot;Aceptar\&quot; class=\&quot;clsButton2\&quot; name=\&quot;Aceptar\&quot; OnClick=\&quot;document.crear.mensaje.value = frames.mensaje.document.body.innerHTML;\&quot; tabindex=\&quot;30\&quot;&gt;
&lt;input type=\&quot;hidden\&quot; name=\&quot;fid\&quot; value=\&quot;$fid\&quot;&gt;&quot;;
if(isset($fpusuario))echo&quot; &lt;input type=\&quot;hidden\&quot; name=\&quot;nombre\&quot; value=\&quot;$infocookie[0]\&quot;&gt;&quot;;
else echo&quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;nombre\&quot; value=\&quot;anonimo\&quot;&gt;&quot;;
if ($que=='mensaje')echo&quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;titulo\&quot; value=\&quot;mensaje comun\&quot;&gt;&quot;;
if(isset($padre))echo&quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;papi\&quot; value=\&quot;$padre\&quot;&gt;&quot;;
echo&quot;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/form&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&quot;;}
}
include&quot;footer.php&quot;;
?&gt;
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 23:28.