Question about "auto saving" PHP, jQuery
Go to solution
Solved by Hazy125,
You can add "onchange" and similar to form elements to trigger a javascript function which can then send a request to the server adding the information about the change to the database.
For example:
<h3>Do you like garlic bread?</h3> <select onchange="sendToServer()"> <option value="It's ok">It's ok <option value="Of course!">Of course! <option value="You'd be a fool to not">You'd be a fool to not <option value="Puppies are pretty swell">Puppies are pretty swell </select>
Whenever someone selects a new option it triggers the sendToServer function
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 accountSign in
Already have an account? Sign in here.
Sign In Now