Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/12/2008, 12:05
Avatar de anticic
anticic
 
Fecha de Ingreso: noviembre-2008
Mensajes: 21
Antigüedad: 16 años, 3 meses
Puntos: 0
Respuesta: Un array de contenido

Me da vergûenza, pero ya leí tu artículo sobre las comillas y aún así no me sale.
A continuación paso el código


Ni siquiera llegué a crear la función.




<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="author" content="">
<?php
$info=array(1=>"Demostración de Estilos","Primer Subtítulo","Segundo Subtítulo","Tercer Subtítulo", "Cuarto Subtítulo","Quinto Subtítulo", "Selectors are one of the most important aspects of CSS as they are used to \"select\" elements on an HTML page so that they can be styled.","Find out more about selectors including the structure of rules, the document tree, types of selectors and their uses. There is also a step-by-step tutorial showing how selectors are used in the process of building a 3-column layout.","Universal selectors are used to select any element. For example, the rule below will color all HTML elements on a page blue - regardless of their position in the document tree.","Adjacent sibling selectors will select the sibling immediately following an element.");
?>
<title><?php echo($info[1])?></title>
</head>

<body>
<div id="contenedor">
<div id="encabezado">
NOTICIAS
</div>
<div id="botonera">
<ul>
<li><a href="index.php?estilo=1">Estilo 1</a> </li>
<li><a href="index.php?estilo=2">Estilo 2</a> </li>
<li><a href="index.php?estilo=3">Estilo 3</a> </li> </li>

</ul>
</div>

<?php


if (isset($_GET["estilo"]))
{
if(empty($_GET["estilo"]))
{
echo('por favor elija un estilo');
}
else
{
for($i=2;$i<=5;$i++);
{
echo(\"<h\".$i">\".$info[$i].\"<\h$i");
}
}

}
else
{
echo('valor invalido');
}
?>




</body>
</html>