hoofdletters-en-kleine-letters-omdraaien
Gesponsorde koppelingen
PHP script bestanden
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html>
<form method="get" wrap=virtual action="index.php" target="_top">
<div align="left">
<table>
<tr>
<td valign="top" align="left">
<input type="text" onfocus="value=''" value="pLAK HIER JE TEKST" name="cabs" size="50" value="\"></input>
<br><input type="submit" value="Omkeren"></input>
</td>
</tr>
</table></div>
</form>
</html>
<form method="get" wrap=virtual action="index.php" target="_top">
<div align="left">
<table>
<tr>
<td valign="top" align="left">
<input type="text" onfocus="value=''" value="pLAK HIER JE TEKST" name="cabs" size="50" value="\"></input>
<br><input type="submit" value="Omkeren"></input>
</td>
</tr>
</table></div>
</form>
</html>
Code (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
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
<?php
$text = $_GET['cabs'];
function flip_case($text)
{
$return = '';
for($i = 0; $i < strlen($text); $i++)
{
$char = $text[$i];
$return .= (strtoupper($char) == $char) ? strtolower($char) : strtoupper($char);
}
return $return;
}
'<br /><br />';
$uitkomst = flip_case($text);
?>
<html>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function copyit(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
therange=tempval.createTextRange()
therange.execCommand("Copy")
}
</script>
</HEAD>
<BODY>
<form name="selectcopy">
<div align="left">
<input onclick="copyit('selectcopy.select1')" type="button" value="Naar klembord" name="cpy">
<p>
<textarea name="select1" rows="3" cols="50"><?php echo $uitkomst; ?></textarea>
</div>
</form>
</BODY>
</html>
$text = $_GET['cabs'];
function flip_case($text)
{
$return = '';
for($i = 0; $i < strlen($text); $i++)
{
$char = $text[$i];
$return .= (strtoupper($char) == $char) ? strtolower($char) : strtoupper($char);
}
return $return;
}
'<br /><br />';
$uitkomst = flip_case($text);
?>
<html>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function copyit(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
therange=tempval.createTextRange()
therange.execCommand("Copy")
}
</script>
</HEAD>
<BODY>
<form name="selectcopy">
<div align="left">
<input onclick="copyit('selectcopy.select1')" type="button" value="Naar klembord" name="cpy">
<p>
<textarea name="select1" rows="3" cols="50"><?php echo $uitkomst; ?></textarea>
</div>
</form>
</BODY>
</html>