Debian Codegraph @

test/html/rawinput/rawinput.htm

raw
1
2 <html>
3 <head>
4 <title>Some Plain tests for Embperl using optRawInput</title>
5 </head>
6
7 <body>
8
9 Here it starts with some HTML Text<P>
10
11 All values should be undefined:
12
13 $a = [+ $a || '' +] <BR>
14 $b = [+ $b || '' +] <BR>
15 $c = [+ $c || '' +] <BR>
16 $d = [+ $d || '' +] <BR>
17 $e = [+ $e || '' +] <BR>
18
19
20 First of all assign a value:
21 [- $a = '(this is the value in $a)' -] <BR>
22
23 Now we have some 'Umlaute':
24
25
26 [- $b = "$a
27 &auml;&ouml;&uuml;" -]
28
29 Now lets look what we are getting from this:<BR>
30 [+ $a +] [+ $b +]<BR>
31
32 And now a and b together: [+ "$a$b" +]<P>
33
34 Here we have some HTML tags within the perl code, <br>
35 Embperl will not delete them when optRawInput is set !<BR>
36
37 [+ $c = "<BR> 6 + 17 <font size=\"3\"> * 3" +]
38
39 Here we have something which looks like a HTML tag, but does not start with<br>
40 a character, Embperl does not change them!<BR>
41
42 [+ "SELECT * FROM a ORDER BY b USING <; Hi There>" +]
43
44 Embperl will not translate HMTL escapes to the right characters <br>
45 when optRawInput is set<BR>
46
47 [- $e = 2 -]
48 [+ $d = "$e &lt; 6" +]
49
50 Now they should have a value
51
52 $a = [+ $a +] <BR>
53 $b = [+ $b +] <BR>
54 $c = [+ $c +] <BR>
55 $d = [+ $d +] <BR>
56 $e = [+ $e +] <BR>
57
58 <P>Ok.<P>
59
60
61 optRawInput is now: [+ $optRawInput +] <BR>
62 optRawInput is set now to: [+ $optRawInput = 1 +] <BR>
63 optRawInput is now: [+ $optRawInput +] <BR>
64
65 [+ $c = "<BR> 6 + 17 <font size=\"3\"> * 3" +]
66
67 [- $b = "$a
68 &auml;&ouml;&uuml;" -]
69
70 Now lets look what we are getting from this:<BR>
71 $a = [+ $a +] <BR>
72 $b = [+ $b +] <BR>
73 $c = [+ $c +] <BR>
74
75 optRawInput is now: [+ $optRawInput +] <BR>
76 optRawInput is set now to: [+ $optRawInput = 0 +] <BR>
77 optRawInput is now: [+ $optRawInput +] <BR>
78
79 [+ $c = "<BR> 6 + 17 <font size=\"3\"> * 3" +]
80
81 [- $b = "$a
82 &auml;&ouml;&uuml;" -]
83
84 Now lets look what we are getting from this:<BR>
85 $a = [+ $a +] <BR>
86 $b = [+ $b +] <BR>
87 $c = [+ $c +] <BR>
88
89
90 </body>
91 </html>