This PHP example program demonstrates how to write and handle the simplest possible form.
<!DOCTYPE> <html> <body> <form action="Simplest.php" method="post"> Name: <input type="text" name="sNameKey"> <input type="submit"> </form> </body> </html>
<!DOCTYPE> <html> <body> <?php echo "Your name is " . htmlspecialchars($_POST["sNameKey"]); ?> </body> </html>
© 20072024 XoaX.net LLC. All rights reserved.