<input type='hidden' name='flag' value='1'> ?? Either that or set the target URL to domain.com/targeturl.php?flag=1
Or register a session called button2pressed whenever button2 is pressed, this will allow you to use the session on every page of your site.
Make the button call an image. Like this: <script type="text/javascript">var img = new Image();</script> <input type="button" onclick="img.src='myscript.php?lots=of&args=yeah';" /> Code (markup):
if it's on-page functionality - rather than session functionality i.e. passing variables from page to page, you'll need to use client-side scripting such as javascript. here's a pretty good resource for button-type javascript functionality: http://javascript.internet.com/buttons/ HTH VG