Hey all, so I have a form with all sorts of data and was wondering how I could add a button, like a RESET that cleared all data but also destroyed the session.
It's easy enough to add a reset button like normal to clear fields but I want to also destroy session variables that would be passed on. An if statement that includes session_destroy seems reasonable, should I use a submit button and somehow reference whether that particular button was clicked via its name?