Anyway, I hope I understand you question, but I'm not 100% sure. So, if my assumptions are not correct, please say so. =)
I guess you have a page with two submit buttons, right?
like
button 1. type="submit" name="submit1"
button 2. type="submit" name="submit2"
when you click submit1 you echo some text like this
if( isset( $submit1 ) )
{
echo "submit1 was pressed";
}
then you have similar code for submit2?
if( isset( $submit2 ) )
{
echo "submit2 was pressed";
}
I think your problem is: when you hit submit1, you get to the "next page" and $submit1 is assigned the value true.
When you then hit submit2, $submit2 is assigned the value true. BUT, the variable $submit1 will lose it's value here, unless you don't save it in any way. I guess you want to remember which submit-buttons have been pressed, right?
One way to save the value of a variable when going to the "next page" is to use a hidden form element, like this:
<input type="hidden" name="name_of_variable" value="<?php echo $variable_with_value_to_save; ?>">
I guess you could do some code like this:
if( isset( $submit1 ) )
{
$submit1_has_been_pressed_some_time = TRUE;
}
then in the form, to remember that submit1 has been pressed before:
<input type="hidden" name="submit1_has_been_pressed_some_time" value="<?php echo $submit1_has_been_pressed_some_time; ?>">
I hope this is a hint how to "save variables", but it might be the case that I've misunderstood the problem.
So, if you like, you could post or send me the code, maybe it's easier then to find the most suitable solution to your problem.
BR
Anders
PS There are also other ways to save variables, you could encode them in the URL.
Example:
page 1
<?php
$saved_var = "some nutty text";
$safe_saved_var = urlencode( $saved_var );
?>
<a href="page2.php?saved_var=<?php echo $safe_saved_var; ?>">click here to go to next page with variable saved_var "saved".</a>
page 2
<?php
$recovered_saved_var = stripslashes( urldecode( $saved_var ) );
echo "saved_var has the value: ", $recovered_saved_var;
?>