Hey everyone. I have this form where people can input environmental data about their lives and the resulting page produces the results from input. However, I want to restrict people from directly accessing the results page if the form is not filled out (since all the values will be zero).
I thought adding a “name” to the submit button of the form and adding this to the result page would do. But now, it prints this event when the button with the name=”submittedi” is clicked. Any ideas? Thanks in advance.
[CODE]
if (!isset($_POST[“submittedi”])) {
echo ‘You cannot access this page directly. Please visit the <a href=”calculator-i.php”>individual carbon footprint calculator</a> page first and input your data’;
exit;
}