im making a page redirect with this so if its turned on it will send people to an error page instead of the original page but when its off it will send them back to the normal page. (this is so i can edit my website without ppl visiting it) i want it to toggle the var value true/false when switching the switch and how can i get the page to save the value of it being on or off when its refreshed it stays in the position i had it in? can you help me asap
im making a page redirect with this so if its turned on it will send people to an error page instead of the original page but when its off it will send them back to the normal page. (this is so i can edit my website without ppl visiting it) i want it to toggle the var value true/false when switching the switch and how can i get the page to save the value of it being on or off when its refreshed it stays in the position i had it in? can you help me asap