Ver Mensaje Individual
  #6 (permalink)  
Antiguo 16/10/2008, 15:34
samu22
 
Fecha de Ingreso: abril-2008
Mensajes: 453
Antigüedad: 16 años, 1 mes
Puntos: 16
Respuesta: Include Dentro de una Variable

entonces si solamente le vas a poner texto y una imagen porque no haces lo siguiente:

en el archivo gene.php

Código PHP:
          function Texto(){
             
$text 'linea uno</br>';
             
$text .= 'linea dos</br>';
             
$text .= '<img src="adasd"/>';
             return 
$text;
     } 
y en el que tenes la tabla

Código 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=utf-8" />
<title>Una Pagina de Mi Dominio</title>
<style type="text/css">
<!--
#cat {
    position:relative;
    left:0px;
    top:0px;
    width:448px;
    height:108px;
    border: 1px solid #BFC4C7;
    background-color: #E3E8EE;
    visibility: visible;
    padding-top: 2px;
    padding-left: 2px;
}
.pest {
    height: 25px;
    width: 100px;
    border: 1px solid #BFC4C7;
    background-color: #C1D3E9;
    font-family: Verdana;
    font-size: 11px;
    padding-top: 6px;
    font-weight: bold;
}
.pest a {
    color: #444;
    text-decoration: none;
}
.pest a:hover {
    color: #444;
    text-decoration: none;
}
.fav {
    float: right;
    width: 248px;
}
.fav a{
    float: right;
    font-family: Arial;
    font-size: 9px;
    text-decoration: none;
    font-weight: bold;
    color: #003300;
    padding-right: 5px;
}
.fav a:hover {
    text-decoration: underline;    
}
-->
</style>
<script type="text/javascript">
<!--
function MM_setTextOfLayer(objId,x,newText) { //v9.0
  with (document) if (getElementById && ((obj=getElementById(objId))!=null))
    with (obj) innerHTML = unescape(newText);
}
//-->
</script>
</head>

<body>

<table width="400px" border="0" cellspacing="0" cellpadding="0">
  <tr>
<?php
include 'generos.php'
$texto Texto();
?>
    <td width="100"><div align="center" class="pest"><a href="javascript:history.go(0)" onclick="MM_setTextOfLayer('cat','','<?php include($gene);?>')">Categorias</a></div></td>
    <td width="100"><div align="center" class="pest"><a href="javascript:void(0);" onclick="MM_setTextOfLayer('cat','','hola soy AYUDA')">Ayuda</a></div></td>
    <td width="248"><div class="fav"><a href="javascript:window.external.AddFavorite('http://www.dominio.com','dominio.com - Descargas gratis');"><img src="http://www.forosdelweb.com/images/star.gif" width="22" height="20" border="0" align="absmiddle"> Favoritos</a></div></td>
  </tr>
  <tr>
    <td colspan="3"><div id="cat"><?php $texto?></div></td>
  </tr>
</table>


</body>
</html>
igual si lo que queres es mandar eso nomas tendrias que utilizar una base de datos