Jump to content

HTML slider write to a local file its value


Recommended Posts

Dear all,

In my project, I am using an emebedded webserver LIGHTTPD with PHP.
Within the main webpage, I use slider to write its value within a local file on my Linux OS.

I wrote the slider like this:

<input type="range" name="lightInputName" id="lightInputId" value="1" min="1" max="20" onchange="getvalor(this.value);" oninput="lightOutputId.value = lightInputId.value">
<input size="1" type="text" name="lightOutputName" id="lightOutputId"></input>

What I want to do is to know if a javascript and/or PHP script is able to read the value of the slider, and copy it onto a local file.

I don't have any idea on how to do this.

Many thanks for your guidance.

Best regards,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...