So, I'm writing a simple webpage that requires some "if-then" type logic for screen output.
A user inputs a series of values in an HTML form (with appropriate PHP variables previously declared), and depending on the values entered (given a series of if-then logic statements), a string is placed in the variable $my_string. Then, using the statement "echo $my_string;" that string is printed to the web-page.
The problem is that I would love to refresh the page so that, before a user inputs values, there is nothing printed to the page (i.e., a page with no output). But, once a user inputs his/her values, that string remains present on the page (even through a refresh).
I have tried to clear variables (using my limited PHP knowledge) and to use the session_destroy() command. I've also cleared variables. However, I cannot remove that darn string output.