I have a polling system, and I want it to reload itself when a poll is clicked on to show either the results, or voting box depending on if they have voted, anyway, I have the code...
<frameset>
<font color="red"><b>Current Polls</b></font><br>
<?
if ($show == "post") {include "polls.php";}
elseif ($show == "results") {include "pollsresults.php";}
else {include "polllist.php";}
?>
</frameset>
unfortunately the only way for this to work, is when one of the polls is clicked, the entire index page reloads which ?$show=whatever in the URL, this I don't mind, but its a stupid way to do it, there must be some way to refresh only the frame that the polls are in.
maybe header("Location: http://www.mysite.com/index.php?show=post&refreshframeonly");
or something like that, but I just can't figure it out, anyone with any ideas would be most welcome!
Thanks