I have a user registration and login form which has various error/success messages. I am trying to put my error box html code around each error message but am having a bit of difficulty.
The html for the error box is:
<div class="alert alert-info alert-login"> *error message here* <div>
My PHP looks like this:
$msg = 'login failed';
I have tried the following:
$msg = '<div class=\"alert alert-info alert-login\">login failed<br></div>';
However this did not work, is anyone able to shed some light as to why and how I am able to fix this? The message is showing but the div styling does not. Cheers!