I am redirecting various messages from a header and echoing them onto a new page. How can I change this so that the html only appears if there is a message variable to echo. i.e., if one of the $_GET
conditions are met? Thanks
$message="";
if(isset($_GET['pw']))
{
$message = "first message";
}
else if(isset($_GET['em']))
{
$message = "second message";
}
else if(isset($_GET['fn']))
{
$message = "third message";
}
else if(isset($_GET['ln']))
{
$message = "forth message";
}
?>
<html>
<body>
<table class='tab2'>
<td class='td2'><?php echo $message; ?></td>
</table>
</body>
<html>