PHP Easy way to combine PHP if statement with HTML

cruz

New Member
This probably might be a silly question, but what I am trying to do is to make an if statement to do the following:\[code\]<?php if ($_SESSION['login'] == true) { ?>Display this HTML code (without converting it to PHP echos<?php } else { ?>Display this instead<?php } ?>\[/code\]Or will I need to echo, and in turn escape all the required characters in order to do what I am after.Thanks
 
Top