<!DOCTYPE html>
<html>
<body>
<form method=”post” action=”<?php echo $_SERVER[‘PHP_SELF’];?>“>
Name: <input type=”text” name=”fname”>
<input type=”submit”>
</form>
<?php
$name = $_POST[‘fname’];
echo $name;
?>
</body>
</html>
Want more stuff like this?
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Thank you for subscribing