PHP output data
<p>When Im trying to validate my PHP output data my echo string puts a <code>&lt;br /&gt;</code> after the tag, how can I prevent this ?</p>

<p>as you see in the first row after  background-color: an <br /> shows up from no where and it's screwing up my validatation.</p>

<p>Im trying to validate in Transitional</p>

<p>This is my entire script</p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; 
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;&lt;head&gt; 
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt; 
&lt;title&gt;Visitkort&lt;/title&gt; 

&lt;style type="text/css"&gt;
body {
    background-color:#efefef;
}

#kort{
position:absolute;
margin-top:30px;
padding-left:5px;
padding-right:25px;
margin-left:450px;
background-color:&lt;?php echo($_POST['color']);?&gt;;
color:&lt;?php echo($_REQUEST['fontcolor']);?&gt;;
font-family: &lt;?php echo($_REQUEST['typsnitt']);?&gt;;
}
&lt;/style&gt;

&lt;/head&gt;

&lt;body&gt;


&lt;form id="form" method="post" action="visitkort.php"&gt;
&lt;table width="300"&gt;
&lt;tr&gt;
&lt;td&gt;Företag: &lt;/td&gt;
&lt;td&gt;    
&lt;input type="text" name="enterprise" id="enterprise" value="&lt;?php echo isset($_POST['enterprise']) ? $_POST['enterprise'] : '' ?&gt;" /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Efternamn: &lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="lastname" id="lastname" value="&lt;?php echo isset($_POST['lastname']) ? $_POST['lastname'] : '' ?&gt;"/&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;namn: &lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="namn" id="namn" value="&lt;?php echo isset($_POST['namn']) ? $_POST['namn'] : '' ?&gt;"/&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Title:&lt;/td&gt;
&lt;td&gt; 
&lt;input type="text" name="title" id="title" value="&lt;?php echo isset($_POST['title']) ? $_POST['title'] : '' ?&gt;"/&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;
Phone:
&lt;/td&gt;
&lt;td&gt; 
&lt;input type="text" name="phone" id="phone" value="&lt;?php echo isset($_POST['phone']) ? $_POST['phone'] : '' ?&gt;"/&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;
E-mail:
&lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="mail" id="mail" value="&lt;?php echo isset($_POST['mail']) ? $_POST['mail'] : '' ?&gt;"/&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;
Typsnitt:
&lt;/td&gt;
&lt;td&gt;
&lt;select id="typsnitt" name="typsnitt"&gt;
&lt;option value="Verdana"&gt;Verdana&lt;/option&gt;
&lt;option value="Arial"&gt;Arial&lt;/option&gt;
&lt;option value="Tahoma"&gt;Tahoma&lt;/option&gt;
&lt;option value="Impact"&gt;Impact&lt;/option&gt;
&lt;/select&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;
Bakgrundsfärg: 
&lt;/td&gt;
&lt;td&gt;
&lt;select name="color" id="color"&gt;
&lt;option value="#799ef1" 
&lt;?php if(isset($_POST['color']) &amp;&amp; $_POST['color'] == '#799ef1') 
echo ' selected="selected"';
?&gt;
&gt;Ljus blå&lt;/option&gt;

&lt;option value="#f0f179" 
&lt;?php if(isset($_POST['color']) &amp;&amp; $_POST['color'] == '#f0f179') 
echo ' selected="selected"';
?&gt;
&gt;Ljus gult&lt;/option&gt;
&lt;option value="#fff" 
&lt;?php if(isset($_POST['color']) &amp;&amp; $_POST['color'] == '#fff') 
echo ' selected="selected"';
?&gt;
&gt;Vit&lt;/option&gt;

&lt;option value="#64b6c1" 
&lt;?php if(isset($_POST['color']) &amp;&amp; $_POST['color'] == '#64b6c1') 
echo ' selected="selected"';
?&gt;
&gt;Turkos&lt;/option&gt;
&lt;option value="red" 
&lt;?php if(isset($_POST['color']) &amp;&amp; $_POST['color'] == 'red') 
echo ' selected="selected"';
?&gt;
&gt;röd&lt;/option&gt;
&lt;/select&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;

&lt;td&gt;
Textfärg: 
&lt;/td&gt;
&lt;td&gt;
&lt;select name="fontcolor" id="fontcolor"&gt;
&lt;option value="#000" 
&lt;?php if(isset($_POST['fontcolor']) &amp;&amp; $_POST['fontcolor'] == '#799ef1') 
echo ' selected="selected"';
?&gt;
&gt;Välj Färg&lt;/option&gt;

&lt;option value="#799ef1" 
&lt;?php if(isset($_POST['fontcolor']) &amp;&amp; $_POST['fontcolor'] == '#799ef1') 
echo ' selected="selected"';
?&gt;
&gt;Ljus blå&lt;/option&gt;

&lt;option value="#f0f179" 
&lt;?php if(isset($_POST['fontcolor']) &amp;&amp; $_POST['fontcolor'] == '#f0f179') 
echo ' selected="selected"';
?&gt;
&gt;Ljus gult&lt;/option&gt;
&lt;option value="#fff" 
&lt;?php if(isset($_POST['fontcolor']) &amp;&amp; $_POST['fontcolor'] == '#fff') 
echo ' selected="selected"';
?&gt;
&gt;Vit&lt;/option&gt;

&lt;option value="#64b6c1" 
&lt;?php if(isset($_POST['fontcolor']) &amp;&amp; $_POST['fontcolor'] == '#64b6c1') 
echo ' selected="selected"';
?&gt;
&gt;Turkos&lt;/option&gt;
&lt;option value="red" 
&lt;?php if(isset($_POST['fontcolor']) &amp;&amp; $_POST['fontcolor'] == 'red') 
echo ' selected="selected"';
?&gt;
&gt;röd&lt;/option&gt;
&lt;/select&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;

&lt;td colspan="2"&gt;
&lt;input type="submit" name="go" id="go" value="Skapa visitkort" /&gt;
&lt;input type="button" value="Rensa" onclick="window.location.reload();return false" /&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;/form&gt;

&lt;div id="kort"&gt;
&lt;?php

if(isset($_REQUEST["go"])){ 
echo($_REQUEST["enterprise"] . "&lt;br/&gt;");    
echo($_REQUEST["lastname"] . " "); 
echo($_REQUEST["namn"] . "&lt;br/&gt;");
echo($_REQUEST["title"] . "&lt;br/&gt;"."&lt;br/&gt;");     
echo($_REQUEST["phone"] . "&lt;br/&gt;"); 
echo($_REQUEST["mail"] . "&lt;br/&gt;");  

}
else{ 
?&gt;

&lt;?php

}
?&gt;
&lt;/div&gt;


&lt;/body&gt;
&lt;/html&gt;
</code></pre>
