-
Notifications
You must be signed in to change notification settings - Fork 0
/
result.php
74 lines (73 loc) · 2.15 KB
/
result.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<html>
<div align="center">
<form>
<table id="table" border="0">
<tr>
<td class="slots">
</td>
<td class="center_slots">
<div align="center">
<span class="result"> <?php echo $key[$main]; ?></span>
</div>
</td>
<td class="slots">
</td>
</tr>
<tr><td colspan="3">
<div align="center"><input type="button" value="Enter Another?" id="buttons" onClick="window.location.replace('index.php')"/></div>
</td></tr>
<tr>
<td colspan="3" style="height: 230px">
<div align="center">
<table width="400" height="150" border="0">
<tr><td height="50"><div align="center" style="font-family: arial; font-size: 15px; color: black; font-weight: bold">Solution:</div></td></tr>
<tr>
<td height="50"><div align="center" id="result"><?php
// Surveying first name...
for ($x=0; $x<$l1; $x++)
{
if ($s1[$x]!=" ")
{
for ($y=0; $y<$l2; $y++)
{
if ($s1[$x]==$s2[$y])
{$s1_up[$x] = "<span class=\"let\">".$s1_up[$x]."</span>"; break;}
}
}
echo $s1_up[$x]; // Echoing names with slashes...
}
?></div></td>
</tr>
<tr>
<td height="50"><div align="center" id="result"><?php
// Surveying Second name;
for ($y=0; $y<$l2; $y++)
{
if ($s2[$y]!=" ")
{
for ($x=0; $x<$l1; $x++)
{
if ($s2[$y]==$s1[$x])
{$s2_up[$y] = "<span class=\"let\">".$s2_up[$y]."</span>"; break;}
}
}
echo $s2_up[$y]; // Echoing name with slashes...
}
?></div></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td class="author" colspan="3">
<div align="center"><span style="color: gray; font-size: 10px; font-family: arial">- Manson A. Mamaril -</span></div>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>