arslion
arslion

Reputation: 440

Saving values from Html form into text file without using PHP

How can i save values from a form when i click submit without using PHP.

<form method="post" name="myform">
<p><input name="login" placeholder="Username" type="text"></p>
<p><input name="pass" placeholder="Password" type="password"></p>
<input name="submit" id="submit" onclick="show_alert();" value="submit" type="submit">
</form>

If text file is not possible. then tell me about any other way to store the data without using PHP. And kindly tell the easiest way possible.

I tried to find whole night but failed.

Thanks !

Upvotes: 0

Views: 1797

Answers (1)

Tyr
Tyr

Reputation: 2810

It's not possible without having a script language behind, which has access to the file system. Due to security reasons javascript can't write files by itself. It's possible to use the local storage of the browser or cookies to save data just for yourself, but both will require the used device / browser.

Upvotes: 1

Related Questions