Ver Mensaje Individual
  #7 (permalink)  
Antiguo 25/01/2011, 09:56
Avatar de Nazari
Nazari
 
Fecha de Ingreso: febrero-2010
Ubicación: Canarias - Tenerife
Mensajes: 62
Antigüedad: 14 años, 2 meses
Puntos: 7
Respuesta: llamar a una variable antes de definirla...?

eits tiene razon, es comun mesclar html y php, pero aveses (por lo general) es conveniente separarlo aunque sea mas 'lio', la forma que el te dijo esta bien, primero php y luego html, otra forma que he usado es hacer switch y definir dos variables, titulo y archivo a incluir, y lo incluyes al inicio de tu index, luego solamente haces <title>$titulo</title> y donde correspondas include($archivo);

Un Saludo.
__________________
Nazarí González
http://www.nazariglez.com - @Nazariglez