html server variables

html server variables


html server variables
Server side application with no server side? Possibly a simple HTML solution. Please read if you code!?

I have a html page with three variables on it. I source out to a js file to run the script so I can easily manipulate this code on a regular basis. So I have basically an HTML front end. How can my users change variables without editing the html itself? I'm looking for a button type solution or even a form where the variables can be input and then submitted to refresh the document. ---- Another question. I have no access to a DB or server side where my users can access and log into a profile then change variables for only themselves. My temporary solution has been to have them each have their own separate HTML front end. Is there another way this could be done? Cookies? Java2? If so, can you write up an example for me or link me to a resource? THANK YOU IN ADVANCE!

Have your JS code ask the client for cookie data before performing your calculations. If the cookie data doesn't exist, then send the default values to the client for next time.

That's the easiest way to implement it, but not the most robust. If you are looking for a much better solution and aren't afraid of a lot of work, then you may need to investigate using Sessions, user logins, and databases to track session data and configurations.

[phpzon]html server variables, 5, Electronics[/phpzon]
[phpbay]html server variables, 30, "11211"[/phpbay]

PHP Basics - Variables and Echo

Leave a Reply