
<?php
$text_color="black";
$tekst=" ";
if(isset($_REQUEST["text_color"]));
$text_color=$_REQUEST["text_color"];
if(isset($_REQUEST["tekst"]))
$tekst=$_REQUEST["tekst"];
echo "<form action=\"kolor_czcionki.php\" method=\"get\">";
echo "Podaj kolor czcionki.<br>";
echo "<input type=\"text\" name=\"text_color\"><br>";
echo "Podaj tekst.<br>";
echo "<input type=\"text\" name=\"tekst\"><br>";
echo "<input type=\"submit\" value=\"OK\"><br>";
echo "<font color=\"$text_color\">";
echo "$tekst";
echo "</form>";
echo "</font>";
?>