url code for <br>
Posted: Fri Mar 28, 2008 10:24 am
Hi,
I am using $_GET to send an error message to the user in the next page, but when the error contains a <br> the URL doesn't have any line break or anything. I tried adding /n instead but again no result. Maybe I am doing it wrong. Here is what I am trying
next page outputs error, with login form
output is
no line break. I looked for a URL code to do line break but couldn't come across anything.
Any help is much appreciated.
I am using $_GET to send an error message to the user in the next page, but when the error contains a <br> the URL doesn't have any line break or anything. I tried adding /n instead but again no result. Maybe I am doing it wrong. Here is what I am trying
Code: Select all
$query = " SELECT count(custID)
FROM Web_Customers
WHERE custEmail = '".$email."' AND custPassword = '".$password."'";
$result = mysql_query($query);
$count = mysql_result($result,0,0);
if($count != 1)
{
$errMsg .= " Invalid Email/Password combination<br />
Did you recently change your password or Email associated with your Account?";
echo '<META HTTP-EQUIV="refresh" CONTENT="0;URL='.STOREURL.'/login.php?error='.$errMsg.'">';
}
Code: Select all
if(isset($_REQUEST['error']))
echo strip_tags(trim($_REQUEST['error']));
Code: Select all
Invalid Email/Password combinationDid you recently change your password or Email associated with your ClearPoint Account?
Any help is much appreciated.