I have a calculator form included in my sidebar, below a login form. When a user submits the login form, that action triggers the:
if ($_SERVER['REQUEST_METHOD'] == 'POST') {}
statement in my other form. I tried adding an:
if (isset($varOne)) {}
statement, using the:
$varOne = $_POST['varOne'];
from the calculator script, but that didn’t work either. The calculator script continues to run if the login form is submitted. How must we stop the madness?!
You can combine the two:
or: