<html>
<!-- This is a simple PHP script that displays the color of the submitted
red, green and blue values. -->
<head>
<title>Server Demo</title>
</head>
<?php
// get the values from the URL
$red = $_GET["red"];
$green = $_GET["green"];
$blue = $_GET["blue"];
// specify the color style based on the submitted red, green and blue values
// Note: the period (".") does string concatenation
$color = "rgb(" . $red . "," . $green . "," . $blue . ")";
?>
<body>
<h1 style="text-align:center">Color Demo</h1>
<div style="text-align: center;">
<strong>Red: <?php print($red); ?></strong><br />
<strong>Green: <?php print($green); ?></strong><br />
<strong>Blue: <?php print($blue); ?></strong><br />
<?php
print("<p style='color:" . $color . "'>");
?>
<strong>Sample Text</strong>
</p>
</div>
</body>
</html>