I have the following form:
<input name="page" type="hidden" value="portfolio"/>
<select name="nav" class="bodytext">
<option value="">Web Design</option>
<option value="">------------------</option>
<?php
foreach ($filelist as $file) {
$filepath = $directory.$separator.$file;
$fp = fopen($filepath, 'r');
$contents = fread($fp, 80);
fclose($fp);
$preg="/<title>(.*?)<\/title>/";
if (preg_match_all($preg, $contents, $match)) {
echo("<option value=\"".$remdirectory.$file."\">" . $match[1][0] . "</option>\n");
} else {
echo("<option value=\"".$remdirectory.$file."\">" . $file . "</option>\n");
}
}
?></select>
Which, of course, has a Submit button further up in the code. How could I make this form submitted without Submit button, when option is chosen?
Thx 😉