Select a graph(image) with "select .. option" html/php ?
Posted: Sun 16 Jan 2011 2:09 pm
Hi,
I need help in html or php code
I would like to choose which graphic (image) to display from a scrolling list:
Link to the "non working"
page http://meyenheim.localweatherview.net/php/graphgw.php "EDIT it's ok now"
Here the code i've tried unsuccessfully

I need help in html or php code
I would like to choose which graphic (image) to display from a scrolling list:
Link to the "non working"
Here the code i've tried unsuccessfully
your advices are welcome<form name="graph_s">
Ces graphiques représentent les données des dernières <select name="cy" onchange="graphgw.php" >
<option value="../images/graph1.jpg">24 heures</option>
<option value="../images/graph2.jpg">48 heures</option>
<?php $grname = selected.value ?>
</select>
</form>
<table cellpadding="0" cellspacing="0" id="Graph_menu">
<tr>
<td <img src=<?php echo $grname?> name="graphs" id="graphs" title="GraphWeather" alt="Graphique météo"/></td>
</tr>
<tr>
<td class="td_navigation_bar">:<a href="index.htm">actuelle</a>::<a href="gauges.htm">instruments</a>::<a href="today.htm">jour</a>::<a href="yesterday.htm">hier</a>::<a href="record.htm">records</a>::<a href="trends.htm">graph</a>:</td>
</tr>
</table>