Free2Code
 
Time: 2008-11-20, 12:54pm
Hi All!..Can someone lend me hand..
Subject: Hi All!..Can someone lend me hand..  ·  Posted: 2007-01-13, 08:04pm
Rank: ? (1)
Member #: 29486
Hi all, its great to have this online community, well uhm i just wonderin' if someone could help me on this..

well i am doing a PHP based front end for the MRTG index page and i'm utilising a select box to enable the user to view any desired graph(a jpeg file) from selection made from the given select box. by default, all type of graph will be displayed on the page. As the user select the choice from the select box, only the desired type of graph is displayed...

Well, i have googled this but not much has been found, could anybody relay me some PHP script on this dilemma??... I'm so much confused!!

 
  Reply to this ·  Post link ·  Top
Subject: Re: Hi All!..Can someone lend me hand..  ·  Posted: 2007-01-14, 01:36pm
Rank: ? (767)
Member #: 11085
I won't give you a script, but I will give you a basic outline of what to do.
1) Make sure the select box has a name, this will be the name of the $_GET (or $_POST, if you want) variable later on.
2) When the page loads, if the contents of th $_GET variable are empty, or the variable does not exist, include all the graph images.
3) Otherwise, include the image as specified by the $_GET variable.

- relpats_eht
 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons