echo toScreen($input); } ?> </textarea></td> <td> <input type="submit" value="Convert"> </td> <td> <select name="to"> <?php foreach ($options as $key => $value) { echo "<option value=\"{$key}\""; if ($to == $key) { echo ' selected'; } echo ">{$value}</option>"; } ?> </select> <br /> <textarea><?php if (!isempty($output)) { echo toScreen($output); } ?> </textarea></td> </tr> </table> </form> <?php include ROOT . '/footer.php';
<form method="post"> <table> <tr> <td><textarea name="toSort" autofocus><?php if (!isempty($toSort)) { echo toScreen($toSort); } ?> </textarea></td> <td> <input type="submit" value="Sort"> <input type="checkbox" name="reverse"<?php if ($reverse) { echo ' checked'; } ?> > Reverse </td> <td><textarea><?php if (!isempty($sorted)) { foreach ($sorted as $string) { echo toScreen($string) . "\n"; } } ?> </textarea></td> </tr> </table> </form> <?php include ROOT . '/footer.php';