Php Create File Html

[Solved] Php Create File Html | Php - Code Explorer | yomemimo.com
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

Answers related to php create file html

Code Explorer Popular Question For Php