FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » button, parameter and reload - How do I glue it all together?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: button, parameter and reload - How do I glue it all together? [message #178801 is a reply to message #178785] Mon, 06 August 2012 12:47 Go to previous messageGo to previous message
mwoolley is currently offline  mwoolley
Messages: 2
Registered: August 2012
Karma:
Junior Member
Brilliant replies! Thanks for all your help! I managed to get it all to work by creating the button (two actually) with this code

<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="image" name="fbb" value="1" src="cal-bck.png" alt="bck" />
<input type="image" name="fbf" value="1" src="cal-fwd.png" alt="fwd" />
</form>

and the magic to see which button was pressed, and take appropriate action

if (isset($_POST['fbb']) or isset($_POST['fbb_x'])) {
build the backwards
} else {
if (isset($_POST['fbf']) or isset($_POST['fbf_x'])) {
build the forwards
}
}
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: App2Fame is back: Bigger, Better & Loads of Prizes.
Next Topic: Handling with xmlhttp.responseText
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Oct 19 14:54:19 GMT 2024

Total time taken to generate the page: 0.04086 seconds