Hello,
I just want to ask is there any way I could put a design on my foreach? Here is the snippet of my program which I want to ask for help.
<?php
if(count($errors) > 0)
{
$display = "<div id=\"stylized\" class=\"myform\">
<h1>The following errors occur:</h1>
foreach($errors as $error)
{
echo $error . "<br/>";
}
<p><a href=\"javascript:history.go(-1)\">Check your registration form</a></p>
</div>
";
}
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="confirmation_style.css" />
</head>
<body>
<?php echo $display;?>
</body>
</html>
I tried to write it this way but an error occurs in line "echo $error . "<br>";