Tema: Frames y Php
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/11/2014, 07:48
alex760125
 
Fecha de Ingreso: enero-2010
Mensajes: 239
Antigüedad: 14 años, 3 meses
Puntos: 0
Frames y Php

Un saludo a todos!

No se ejecuta un archivo .php dentro de un frame. Utilizo Dreamweaver y WampServer, nunca he tenido problemas para ejecutar un .php, pero es la primera vez que trabajo con frames...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>CONTROL</title>
</head>

<frameset cols="20%,45%,25%" frameborder="no" border="" framespacing="5%">
<noframes>
<body>


</body>
</noframes>

<frame src="FRM1.php" name="leftFrame" id="leftFrame" title="cgw" />
<frame src="FRM-ITM.php" name="DelMedio" id="kacho2" title="mainFrame"/>
<frame src="FRM2.php" name="mainFrame" id="mainFrame" title="mainFrame" />

</frameset>


</html>
************************************************** ************

También probé

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<frameset cols="20%,45%,25%" frameborder="no" border="" framespacing="5%">
<noframes>
<body>


</body>
</noframes>

<frame src="FRM1.php" name="leftFrame" id="leftFrame" title="cgw" />
<frame src="FRM-ITM.php" name="DelMedio" />
<frame src="FRM2.php" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>


</html>
************************************************** ***********
Archivos:

FRM1.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>


<table border="1" cellspacing="3" cellpadding="20" bgcolor="#CCCCCC">
<tr>
<th colspan="3" bgcolor="#FF3300" width="120px"><font color="#FFFFFF" size="+3">DECAL NARANJA</font></th>
</tr>
<tr>
<form action="" method="" target="">

<td width="60px">

<A HREF="actualizar.php" TARGET=DelMedio>
<input type="button" value="ACTUALIZAR" name="actualizar">
</A>


</td>
<td width="60px"><input type=submit value="BUSCAR" name="buscar"></td>
</form>
</tr>
<tr>
<td width="120px" colspan="2">
<img src="imageCWG/IMD1.jpg" />
</td>
</tr>
</table>

</body>
</html>
**************************************************
actualizar.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Seguimiento Real</title>
</head>

<body>
<?php

Nota: Este archivo .php no se ejecuta, todo este código php se muestra en el frame tal cual como si fuera un html.

?>

</body>
</html>

Última edición por alex760125; 06/11/2014 a las 07:56