I have this form tag below where the form submits to itself which I want to happen everytime the form is submitted UNTIL the $sessionMinus (which is a number) equals the same number as ($_SESSION[‘initial_count’]) then I want the form to submit to the session_marks2.php. How Can I get that to work?
Below is my current tag:
<form id="QandA" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" method="post" onsubmit="return validateForm(this);" >
Below is the if statement for where $sessionMinus equals $_SESSION[‘initial_count’]:
if ($sessionMinus = $_SESSION['initial_count'])
The statement
is always true and should be
your code should be something like
and then