At the top of my "Display Private Message" page, I have a "Reply" Form Button that users can click on to respond to the PM. There is also a "Delete" Form Button like this...
<input type='submit' name='submit' value='Reply'/>
<input type='submit' name='submit' value='Delete'/>
By naming each Form Button "submit", it streamlines my PHP code, because when the Form is submitted, my code always knows to look for the value assigned to "submit" like this...
// Do some reply stuff...
// Do some delete stuff...
(Someone taught me this technique, and it is way easier to manage than having different names for each Button.)
However, my problem is that I want to add a second set of "Reply" and "Delete" Form Buttons at the bottom of my "Display Private Message" page so Users don't have to scroll to the top of the page on long messages.
If I use the same code above I will have two sets of Form Submit Buttons with *duplicate values*...
And if I give each set of Buttons unique Values, then that screws up the Button Label. (It would look silly to have "Reply" and "Delete" at the top of the page, and "Reply2" and "Delete2" at the bottom of the page?!)
Is there a way to accomplish what I want, and hopefully not have to change the scheme I am currently using?