+ <form id="form" method="post" action="?" enctype="multipart/form-data">
+ <textarea name="text" style="width:100%; height:20em;"></textarea>
+ <br>
+ <select onchange="document.getElementById('form').action =
+ document.location + '?ft=' + this.value;">
+ <option value="" selected="selected" disabled="disabled">Filetype</option>
+ <option value="">None</option>
+ $(for ft in $filetypes; do
+ echo "<option>$ft</option>"
+ done)
+ </select>
+ <input type="submit" value="Paste">
+ </form>
+ <br>
+