ok...
firstly html is full of S**t...
now the question...
ok i'm writing a page that has a drop down menu. There are (for eg 3) interfaces.
this is taken from an array. the array works fine.
[0] [0] = the first interface with the number of listings in this interface
[0] [1] = the name of the interface
[0] [2..x]= the details of the interface...
[1][0] = second interface with the number of listings in this interface..etc
thats how the array is setup...
ok...
now i display the name of the interface in a drop down menu...
this is done with a for loop (the whole code will be given below)...
ok once the for loop is over the particular details of the interface are given below it.
the thing is i'm struggling with the following...
when the user will select a different interface (from the drop down menu) i want the page
to be refreshed with the chosen interfaces values. the reason i'm struggling is that the form has to post the interface values to the submit page. hence i can't post to the page itself.
i am really stuck hence i can only go this far. (i tried onclick but then that didn't work and i found out it is a java command. i'm not allowed to use jave at all in this program.
here is the code
CODE
<?php //--- This function shows the details depending on the interface selected
function give_details($interfaces,$i,&$detail1,&$detail2)
{
$detail1=$interfaces[$i][2];
$detail2=$interfaces[$i][3];
} //--- end function give_details()
?>
<?php //--- This function displays the form
function show_form($CHECKED1,$CHECKED2,$CHECKED3)
{
get_info($num_of_interfaces,$interfaces); ?>
<form action="submit_config.php" method="POST">
<!-- interfaces option -->
<b>Interfaces: </b>
<select size="1" name="Interface">
<?php
for ($i=0;$i<$num_of_interfaces;$i++)
{ ?>
<option value=<?php echo $interfaces[$i][1]; ?> >
<?php echo $interfaces[$i][1];?>
</option>
<?php } //--end for
?>
</select>
<br>
<b>detail1: </b>
<?php echo $detail1; ?>
<br>
<b>detail2 : </b>
<?php echo $detail2; ?>
<br>
<br>
<!-- And now for the buttons -->
<div align="right">
<input type="SUBMIT" name="accept" value="SUBMIT"> <b> </b>
<input type="RESET" value="DEFAULT VALUES"> <b> </b>
</div>
<br>
<br>
<br>
</form>
<?php } ?> <!-- End of Function show_form() -->
Please help ASAP!!!!! (don't worry its not homework...its for work

)