Not entirely sure I understand your question but does this work?
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>My Page</title>
<body>
<?php
if (!empty($_POST['name'])) {
$cheese = $_POST['name'];
echo "Welcome ". $cheese . ", to my webpage <br />";
} else {
?>
<form action="order.php" method="post">
Name:<input name="name" type="text" />
<input type="submit" />
</form>
<?php
}
?>
</body>
</html>
Corrections to my coding/thoughts welcome.
Bookmarks