I have this PHP Code:
$address='';
if($_POST["address1"] > '') {
$address.=$_POST["address1"];
}
if($_POST["address2"] > '') {
$address.=$_POST["address2"];
}
if($_POST["address3"] > '') {
$address.=$_POST["address3"];
}
if($_POST["town"] > '') {
$address.=$_POST["town"];
}
if($_POST["county"] > '') {
$address.=$_POST["county"];
}
if($_POST["postcode"] > '') {
$address.=$_POST["postcode"];
}
It then inserts a row into a database using the $address
variable
How can i ensure there is a non-html line break for each address line?