Foros del Web » Programando para Internet » PHP »

html en PHP

Estas en el tema de html en PHP en el foro de PHP en Foros del Web. Hola, hago una consulta como puedo agregar codigo html en un archivo .php?...
  #1 (permalink)  
Antiguo 24/07/2008, 21:40
 
Fecha de Ingreso: mayo-2008
Mensajes: 11
Antigüedad: 16 años
Puntos: 0
Pregunta html en PHP

Hola, hago una consulta como puedo agregar codigo html en un archivo .php?
  #2 (permalink)  
Antiguo 24/07/2008, 22:02
Avatar de Marvin
Colaborador
 
Fecha de Ingreso: febrero-2005
Ubicación: global $Chile->Santiago;
Mensajes: 1.991
Antigüedad: 19 años, 2 meses
Puntos: 81
Respuesta: html en PHP

Asi:
Código PHP:
<html>
<? echo 'titulo'?>
<head>
</head>
<body>
<? echo 'test'?>
</body>
</html>
o tambien asi:
Código PHP:
$titulo "titulo";
$body "test";
$html '<html>
'
.$titulo.'
<head>
</head>
<body>
'
.$body.'
</body>
</html>'
;
echo 
$html
Suerte!
__________________
El que dice "Solo sé que nada sé", esta asumiendo que sabe algo.
Lea las FAQ's!
  #3 (permalink)  
Antiguo 24/07/2008, 22:24
Avatar de eZakto  
Fecha de Ingreso: julio-2008
Mensajes: 214
Antigüedad: 15 años, 9 meses
Puntos: 5
Respuesta: html en PHP

Si escribes normalmente como si fuera un archivo .html funcionará.
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 10:52.