keyboard
06-25-2011, 05:07 AM
Hi everyone. Here is a pretty basic php script.
<html><body>
<form action="order.php" method="post">
Name<input name="name" type="text" />
<input type="submit" />
</form>
</body></html>
<?php
$cheese = $_POST['name'];
echo "Welcome ". $cheese . ", to my webpage <br />";
?>
It does what I want, but is there a way to display the Welcome "name" to my webpage only after the button is clicked.
Thanks for any help
<html><body>
<form action="order.php" method="post">
Name<input name="name" type="text" />
<input type="submit" />
</form>
</body></html>
<?php
$cheese = $_POST['name'];
echo "Welcome ". $cheese . ", to my webpage <br />";
?>
It does what I want, but is there a way to display the Welcome "name" to my webpage only after the button is clicked.
Thanks for any help