-
Notifications
You must be signed in to change notification settings - Fork 0
/
form-isle.php
92 lines (84 loc) · 1.45 KB
/
form-isle.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<html>
<head>
<title>Form işleme</title>
</head>
<body>
<?php
if($_POST)
{
if($_POST['ad'])
{
$bloro = $_POST['ad'];
}
else
{
$bloro = '';
}
if($_POST['soyad'])
{
$gloro = $_POST['soyad'];
}
else
{
$gloro = '';
}
if($_POST['id'])
{
$id = $_POST['id'];
}
else
{
$id = '';
}
echo $bloro.' '.$gloro.' '.$id;
}
/*if($_GET)
{
if($_GET['ad'])
{
$bloro = $_GET['ad'];
}
else
{
$bloro = '';
}
if($_GET['soyad'])
{
$gloro = $_GET['soyad'];
}
else
{
$gloro = '';
}
echo $bloro.' '.$gloro;
}*/
/*if($_REQUEST)
{
$b = '';
$c = '';
if($_REQUEST['ad'])
{
$b = $_REQUEST['ad'];
}
if($_REQUEST['soyad'])
{
$c = $_REQUEST['soyad'];
}
echo $b.' '.$c;
}*/
?>
<h2>Get Metodu</h2>
<form action="http://localhost/form-isle.php" method="get">
<input type="text" name="ad">
<input type="text" name="soyad">
<button type="submit">Gönder</button>
</form>
<h2>Post Metodu</h2>
<form action="http://localhost/form-isle.php" method="post">
<input type="text" name="ad">
<input type="text" name="soyad">
<input type="hidden" name="id" value="15"/>
<button type="submit">Gönder</button>
</form>
</body>
</html>