PHP webpage generator will not generate?
<p>How do I fix this so that when php calls  $fontcolor
and the user selects the option value = "fblue" the font color will be blue?</p>

<p>Likewise  if the user selects the value = "size1" for Font Size 1, how 
do I change the font based on the user selection, since this is a radio button
I think only the value will be sent to the php script, in this case size1?</p>

<p>The section with the php script will be on it's own separate .php file and will not be 
included with the html, this was just to show how the .php section of the script looks like.</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;
Webpagegenerator
&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;center&gt;

&lt;h1&gt;Web Page Generator&lt;/h1&gt;
&lt;h3&gt;Generates a web page based on user choice:&lt;/h3&gt;

&lt;form method = "post"
action = "webpagegene.php"&gt;

&lt;h3&gt;User inputs text body: &lt;/h3&gt;

&lt;textarea name = "textbody"
rows = "10"
cols = "40"&gt;
&lt;/textarea&gt;

&lt;br/&gt;
&lt;br/&gt;

&lt;table border = "2" &gt;
&lt;tr&gt;
&lt;td&gt;&lt;h3&gt;Font Color&lt;/h3&gt;&lt;/td&gt;
&lt;td colspan = "2"&gt;&lt;h3&gt;Background Color&lt;/h3&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;
&lt;!--How do I fix this so that when php calls  $fontcolor
and the user selects the option value = "fblue" the font color will be blue?--&gt;
&lt;select name = "fontcolor"&gt;
&lt;option value = "fblue"&gt;Blue&lt;/option&gt;
&lt;option value = "fred"&gt;Red &lt;/option&gt;
&lt;option value = "fgreen"&gt;White&lt;/option&gt;
&lt;/select&gt;
&lt;/td&gt;
&lt;td&gt;

&lt;select size = "5"
name = "backgroundcolor"&gt;
&lt;option value = "byellow"&gt;Yellow&lt;/option&gt;
&lt;option value = "bsilver"&gt;Silver&lt;/option&gt;
&lt;option value = "bmaroon"&gt;Maroon&lt;/option&gt;
&lt;option value = "bpink"&gt;Pink&lt;/option&gt;
&lt;/select&gt;
&lt;/td&gt;

&lt;!--Likewise, if the user selects the value = "size1" for Font Size 1, how 
do I change the font based on the user selection, since this is a radio button
I think only the value will be sent to the php script, in this case size1?--&gt;
&lt;td&gt;
&lt;input type = "radio"
name = "sizeType"
value = "size1"/&gt;Font Size 1&lt;br/&gt;

&lt;input type = "radio"
name = "sizeType"
value = "size2"/&gt;Font Size 2&lt;br/&gt;

&lt;input type = "radio"
name = "sizeType"
value = "size3"/&gt;Font Size 3&lt;br/&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;br/&gt;

&lt;input type = "submit" value = "show me"/&gt;

&lt;br/&gt;
&lt;br/&gt;
&lt;/form&gt;

&lt;?php
// The php script seems to work; however, in terms of 
// the script manipulating attributes such as changing 
// the font, color or background when requested by the user, it 
// does not seem to yield any results :-(.

// I can however have the user type text into the text field, but this is not
// enough, I want to be able to manipulate it-change it's font size, font color
// and the background color for the text.
$backgroundcolor = $_REQUEST["backgroundcolor"];
$fontcolor = $_REQUEST["fontcolor"];
$textbody = $_REQUEST["textbody"];
$sizeType = $_REQUEST["sizeType"];

$theStyle = &lt;&lt;&lt; HERE
"$textbody$fontcolor$sizeType"
HERE;

print $textbody;
?&gt;

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