php - Remember checkbox settings for 24 hours -
I have a dog that needs medicine three times a day.
I have created a simple webpage to connect to 2 different iPhones also to notice who gave it medication.
The page has 3 check boxes how can I remember them if they are checked, if I check one, and my wife opens the page to see that I So, it shows.
And want to erase memory every day at 00:00.
What would be the easiest way to solve this task?
This is the HTML file I have: Does anyone approach me PHP?
& lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Medisintime & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div style = "text-align: center" & gt; & Lt; H1 & gt; Medisinetime & LT ;? / H1> & Lt; Br> & Lt; Br> & Lt; Form action = "remember.php" method = "post" & gt; & Lt; Table style = "border: 0; margin-left: auto; margin-right: auto; text-align: left" & gt; & Lt; Td> Amorok morning: & lt; / Td> & Lt; Td> & Lt; Input name = "am" type = "checkbox" & gt; & Lt; / Td> & Lt; Td> Amarok Mid Day: & lt; / Td> & Lt; Td> & Lt; Input name = "nm" type = "checkbox" & gt; & Lt; / Td> & Lt; Td> Amokhok Evening: & lt; / Td> & Lt; Td> & Lt; Input name = "AK" type = "checkbox" & gt; & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; / Table & gt; & Lt; Br> & Lt; Br> & Lt; Input type = "submit" value = "register!" & Gt; & Lt; / Form & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;Instead of a form or dB - why not just write the current time / date every time When you make a medicinal file when the page loads - open the contents of the file and resonate, so whatever curiosity it can see the medication record.
PHP can do this very easily.
Comments
Post a Comment