Store user login without mysql or php

I have a simple html application that displays words with one click of the next button. It extracts words from the javascript object literal file. I want to mark some words as easy and some as complex. How to save this data from browser without using mysql database? can i edit javascript object file directly from bowser?

+3
source share
3 answers

If you want to use user input and constantly store it on your website, you will have to use some kind of server-side script. It doesn't have to be PHP, but it is probably the easiest way to do this. You cannot use client-side javascript to write directly to a remote file.

+3
source

If I understand correctly, you have a JS object / array with words, you are modifying it and want to keep the modified version forever.

If yes, then you can use "HTML5"localStorage .

This is a repository for every browser. If you want one version to be distributed among many users / browsers, you will need server-side support.

+1
source

, cookie , , .

0

All Articles