-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConvertLettersMain.php
48 lines (46 loc) · 1.7 KB
/
ConvertLettersMain.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Case Swaper</title>
</head>
<body>
<br>
<br>
<br>
<h1 align="center">Yusuf's Case Swapper</h1>
<p align="center"> This program
reads in a text file from a given URL (the default URL is
<a href="https://staff.fnwi.uva.nl/t.h.koornwinder/art/informal/KLSadd.tex" color="">https://staff.fnwi.uva.nl/t.h.koornwinder/art/informal/KLSadd.tex</a>)
and replaces for a given letter, the case fo that letter. (There is also an option to
replace the case of all letters simultaneously). The user can choose the name of the
output text file which, by default, is saved (in Firefox) to the Downloads directory.
</p>
<br>
<br>
<form action="alternative_swap.php" method="post">
<table align="center">
<tr>
<td>URL:</td>
<td> <input type="text" value="https://staff.fnwi.uva.nl/t.h.koornwinder/art/informal/KLSadd.tex"name="url"></td>
</tr>
<tr>
<td>File Name:</td>
<td><input type="text" value="Sample_Name.tex"name="newfilename"> </td>
</tr>
</table>
<p align="center">
<select name="lettersDDMenu">
<?php
$first = ["All Letters"];
$options = array_merge($first, str_split("ABCDEFGHIJKLMNOPQRSTUVWXYZ"));
foreach ($options as $option) {
echo "<option value=\"$option\">$option</option>";
}
?>
</select>
<input type="submit"value="Convert"align="center">
</p>
</form>
</body>
</html>