-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttp-get.php
More file actions
54 lines (40 loc) · 986 Bytes
/
http-get.php
File metadata and controls
54 lines (40 loc) · 986 Bytes
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
<html>
<head>
<title></title>
</head>
<body>
<?php
echo "this is a file temp5-php<br>";
$variable="memo1";
$$variable=$_GET[$variable];
if($$variable!=null)print "Memo1: ${$variable}<br>";
$variable="combobox1";
$$variable=$_GET[$variable];
if($$variable!=null)print "Combobox1: ${$variable}<br>";
$variable="checkbox1";
// îáÿçàòåëüíàÿ ïðîâåðêà íà óñòàíîâêó, èíà÷å - îøèáêà
if(isset($_GET[$variable]))
{
$$variable=$_GET[$variable];
print "Checkbox1: ${$variable}<br>";
}
$variable="checkbox2";
// îáÿçàòåëüíàÿ ïðîâåðêà íà óñòàíîâêó, èíà÷å - îøèáêà
if(isset($_GET[$variable]))
{
$$variable=$_GET[$variable];
print "Checkbox2: ${$variable}<br>";
}
$variable="radio1";
// îáÿçàòåëüíàÿ ïðîâåðêà íà óñòàíîâêó, èíà÷å - îøèáêà
if(isset($_GET[$variable]))
{
$$variable=$_GET[$variable];
print "$variable: ${$variable}<br>";
}
$variable="button1";
$$variable=$_GET[$variable];
print "$variable: ${$variable}<br>";
?>
</body>
</html>