I want to be able to use the values of the selected number in the drop down list to append into a url.
http://genuinesounds.mine.nu/index.php
<?php
function dropdown( $name, array $options, $selected=null )
{
/*** begin the select ***/
$dropdown = '<select name="'.$name.'" id="'.$name.'">'."\n";
$selected = $selected;
/*** loop over the options ***/
foreach( $options as $key=>$option )
{
/*** assign a selected value ***/
$select = $selected==$key ? ' selected' : null;
/*** add each option to the dropdown ***/
$dropdown .= '<option value="'.$key.'"'.$select.'>'.$option.'</option>'."\n";
}
/*** close the select ***/
$dropdown .= '</select>'."\n";
/*** and return the completed dropdown ***/
return $dropdown;
}
?>
<center>
<font size=9><b>
Refresh interval in seconds.
</b></font>
<form>
<?php
$name = 'time';
$options = array( '5', '10', '30', '60', '120' );
$selected = 0;
echo dropdown( $name, $options, $selected );
?>
</form>
<form method="link" action="getmyip.php?time=<?php print("$NEED THIS PART"); ?>">
<input type="submit" value="Submit">
</form>
</center>