I need to take the form below and print on screen which works, but also write to a txt file with the PHP variables.
<html>
<body>
<form action="welcome.php" method="post">
Name: <input type="text" name="name"><br>
E-mail: <input type="text" name="email"><br>
<input type="submit">
</form>
</body>
</html>
Welcome.php
<html>
<body>
Welcome <?php echo $_POST["name"]; ?><br>
Your email address is: <?php echo $_POST["email"]; ?>
</body>
</html>
Your email is Bob@bob.com. The solutions only echo x bytes written. and the file only has the Bob - bob@bob.com its missing the Welcome and your email is. – WTF_Mate Feb 26 '20 at 22:10