Javascrip - on/ off button
Hi i am in the middle of creating a members area system which has went well up to now. I need to create a button that will turn alerts on and off for example when the user clicks the button it will show turn on and vice versa however each time they select the button i want it to update the database with its current state so the admin knows who is currently accepting alerts. IS THIS POSSIBLE!!!!
I would like to thank you in advance and appreciate any help.
o . Q
_—__ "You live and you learn; or you don't live long." - Lazarus Long
Thanks for the prompt reply, would you have any idea of how to do this or could you point me in the right direction.
set a cookie of alerts on/off.
this accomplish two of your goals:
1. remembering the pref
2. making the pref available to the server (using the backend cookie feature)
you'll have to ask on a different forums about committing the various cookies to a DB, that's backend talk...
Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com
thanks, i have the code to change the button from on to off and vice versa, i will ask elsewhere how to update server thanks for your responses
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)