Click here to Skip to main content
15,910,009 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to save html registration form data into json file then login based on it
without using any server side scripting languages.
just with javascript, jquery

html file "simple form" contains:
First Name, Middle Name, Last Name, User Name, Password, Confirm Password , E-Mail, Phone

i want when user enters his data and click register button, his data will be saved in json file

surely on the server

i have created this json file on the server before "C:\inetpub\wwwroot\usersData.txt"

-----------------------------------
and based on this file "usersData.txt", when another user want to register again, i need to check in this json file "usersData.txt" that user name is unique, if it is a unique user name, save his data in the json file and vice versa
-----------------------------------
finally, i want to how to update the password in this json file when i use change_password() JS function

please i need the help quickly
Thanks v.much in advance
Posted

JSON or not, using a flat file to store login information is a very poor design. Databases have been around for quite some time. You should read about them.
 
Share this answer
 
ok sir, i totally agree with you, but i need it for another purpose
if i can do this, plz help me
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900