scriptA.php has a form that sends POST to scriptB.php. scriptB.php also a form that sends POST data to scriptC.php. When I print_r($_POST) on scriptC.php, the data is not scriptB's but scriptA's!
ScriptB even has a call to unset($_POST) which seems to work. It appears to work because on scriptB ther is also a print_r($_POST) after that unset($_POST) which shows it is empty.
So how does scriptC still end up with scriptA's POST data? I've unset() it, and submitted a new POST form... but it's not going away! I'm going crazy here.
Tried multiple browsers, logging in and out of the site... Nothing has worked so far.
scriptA.php
<form method="post" action="scriptB.php">
{form inputs}
</form>
scriptB.php:
<?php
unset($_POST);
print_r($_POST); //blank
?>
<form method="post" action="scriptC.php">
{form inputs, different than scriptA}
</form>
scriptC.php:
<?php
print_r($_POST); // displays data fields from scriptA instead of scriptB
?>