What's wrong with this CSS/HTML/PHP?

Joe Burnett

New member
This is sort of like a css generator but my color:#; shows up like that I can't figure out what's wrong!

<input type="text" name="text-color" maxlength="10" size="10" />

$Background_Color = $_POST['bgcolor'];
$Margin_px = $_POST['margin'];
$Border_px = $_POST['border'];
$Padding_px = $_POST['padding'];
$Border_Type = $_POST['border-type'];
$Border_Color = $_POST['border-color'];
$Text_Color = $_POST[text-color];
$Text_bgcolor = $_POST['text-bgcolor'];

$CSS_Code = "form { background-color: #" . $Background_Color . "; margin: " . $Margin_px . "px; border: " . $Border_px . "px; padding: "
. $Padding_px . "px; border-type: " . $Border_Type . "; border-color: #" . $Border_Color . "; color: #" . $Text_Color . ";} input{
background-color: #" . $Text_bgcolor . " }";

echo $CSS_Code;
 
Back
Top