Depends on the name of the buttons.
Assuming :
<input type = submit name = add_more value = "Add More">
and
<input type = submit name = finish value = "Finish">
Then you do this :
if ($add_more) {
perform whatever;
}
if ($finish) {
perform finish;
}
Nick Wilson wrote:
Evenin' all
Could someone tell me what to check when checking which button a user has pressed?
Example:
I have 2 buttons, one with name 'finish' and one with name 'add more'.
Do I check $query, $submit or $whatever?
Cheers
Nick