If you want to save the form data on the server side, I would do it with php like this:
<?php
$action = $_GET["action"];
$myText = $_POST["mytext"];
if($action = "save") {
$targetFolder = "/path/to/folder";
file_put_contents($targetFolder."mytext.txt", $myText);
}
?>
<html>
<head>
<title>myform</title>
</head>
<body>
<form action="?action=save" name="myform" method="post">
<input type=text name="mytext">
<input type="submit" value="save">
</form>
</body>
</html>
However if you want to save the data on the client side, normally you do it with local storage. But mind that only the client can access data of his local storage. Here is an example: Storing Objects in HTML5 localStorage
Setup: leftItems & rightItems are arrays of 5 digit ID's. matchedItems is an array of all those ID's - there a lots of results with the same ID. $matches is a div to which I want to append results ...
Setup: leftItems & rightItems are arrays of 5 digit ID's. matchedItems is an array of all those ID's - there a lots of results with the same ID. $matches is a div to which I want to append results ...
I'm trying to display the time it takes a function to complete in javascript, and then display the time in an alert window that is called on button click, however the alert box doesn't pop up at all ...
I'm trying to display the time it takes a function to complete in javascript, and then display the time in an alert window that is called on button click, however the alert box doesn't pop up at all ...
I have a html table with a row that looks like: <tr> <td><input type="checkbox" name="check[]" value="265"></td> <td>265</td> <td>NO MATCH</...
I have a html table with a row that looks like: <tr> <td><input type="checkbox" name="check[]" value="265"></td> <td>265</td> <td>NO MATCH</...
I'm following a book, and using this version of Angular: https://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.js[1] This is my template: <div ng-controller="ParentController"> <...
I'm following a book, and using this version of Angular: https://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.js[1] This is my template: <div ng-controller="ParentController"> <...