Javascript/Html Question?

Dick Gozinya

New member
Two part question... Here is what I want...

I'm going to make a list of directories and I want a check box by them to be able to save that they have been checked so when my visitors return they know where they are...

For the check box part would I use a form in Html?

Also to save the data would I use javascript?

What would the javascript be for this sort of thing.
Okay javascript can handle a funtion like like making a "cookie", the question really is more will it save "form data" or am i completely mistaken?
Okay make a cookie about which boxes are checked and unchecked.
 
I think that you are misunderstanding the role of JavaScript in this question. You are correct that the right way to do it is to use an HTML form. The form, when it is submitted, sends data out, something JavaScript does not do.

JavaScript is a scripting language used within a hosted environment and it's main role is to do stuff on the page. The back end, server side stuff is done by a server side language. So what you are asking is rather tricky, if not impossible to do with JavaScript, but becomes super easy with a language like PHP. Even without knowing how to program in a server side language, as long as you can run it on your server, you can easily get help with creating a script that can do this. If the directory is large you could use a database. There are many options, but not with JavaScript.
 
Back
Top