Tuesday, June 2, 2009

PHP For 5th Graders

<html>
<body>

<h3>What color is your bike? </h3>

<form name="bike" action="" method="post">
<input name="bike_color" type="text" size="7">
<input type="submit" name="submit" value="submit">
</form>

<?

if (isset($_POST['submit'])) {

    $bike_color = $_POST['bike_color'];
    echo "<h1>Ha Ha! Your bike is $bike_color !!!</h1>";

}

?>

</body>
</html>

No comments: