Hi,
I have a script with a form with method= POST in which there is:
a. A button that takes me to the 'view-rb.php' script:
form.= " <input type=\"submit\" name=\"viewRbLine\" value=\"View\" onclick=\"f1.action='view-rb.php'; return true;\" > ";
b. a form variable: 'refreshNum'
In view-rb.php script I have the following 'commented out':
//if (isset($POST["refreshNum"])) {
// $refreshNum = $POST["refreshNum"];
//}
Then, I have
$refreshNum = $refreshNum + 1;
echo "refreshNum=".$refreshNum;
I expected the variable '$refreshNum' to be zero initially, yet is has the value sent by POST even though I commented out the above lines.
Is this the way php works: that local variable $var1 is the same as $_POST['var1']?
Thanks.