Question : php create file html
Answered by : beanos
<?php
if(isset($_POST['submit'])){
$Name = "Username:".$_POST['username']."
";
$Pass = "Password:".$_POST['password']."
";
$file=fopen("saved.txt", "a");
fwrite($file, $Name);
fwrite($file, $Pass);
fclose($file);
}
?>
Source : https://www.blogdesire.com/save-html-form-data-to-text-file-using-php/ | Last Update : Sun, 28 Nov 21