Untitled
By: a guest | Sep 5th, 2010 | Syntax:
PHP | Size: 0.56 KB | Hits: 19 | Expires: Never
<html>
<head>
<title>Test</title>
</head>
<body style="background-color:#1c1c1c;margin:0">
<div style="border-top:1px solid #404040">
<div style="color:#fff;;padding:10px">
<h1>Hello World!</h1>
</div>
</div>
<script type="text/php">
if ($_POST['name']) {
$name = $_POST['name'];
echo "<p>Your name is $name.</p>";
} else {
echo '<form action="index.php" method="post">
What is your name?
<p><input type="text" id="name" name="name" /></p>
<input type="submit" id="submit" name="submit" value="Submit" />
</form>';
}
</script>
</body>
</html>