i have the following drop down menu for a router/interface selection. Whenever i choose an interface, i need to have a submit button that passes what i choose. I have tried various ways but no luck. Does anyone have a suggestion on where to place a submit button inside this form, or do i need to start a new form?
thanks
//returns an array of table names
function getTables(){
$table_array = array();
$table_list = mysql_list_tables($this->db);
while(list($bla)=mysql_fetch_array (table_list)){
array_push($table_array, $bla);
}
return $table_array;
}
//returns formatted SELECT portion of a HTML FORM
function getSelect(){
$table_array = $this->getTables();
echo "<FORM METHOD=POST NAME=\"tableform\">";
echo "<SELECT NAME=\"tables\">";
for($i=0; $i < count($table_array); $i++){
echo "<OPTION value=".$table_array[$i].">".$table_array[$i];
}
echo "</SELECT>
</FORM>";
}
thanks
//returns an array of table names
function getTables(){
$table_array = array();
$table_list = mysql_list_tables($this->db);
while(list($bla)=mysql_fetch_array (table_list)){
array_push($table_array, $bla);
}
return $table_array;
}
//returns formatted SELECT portion of a HTML FORM
function getSelect(){
$table_array = $this->getTables();
echo "<FORM METHOD=POST NAME=\"tableform\">";
echo "<SELECT NAME=\"tables\">";
for($i=0; $i < count($table_array); $i++){
echo "<OPTION value=".$table_array[$i].">".$table_array[$i];
}
echo "</SELECT>
</FORM>";
}