File tree 5 files changed +67
-0
lines changed
5 files changed +67
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ echo
3
+ '<form action="zpracuj.php">
4
+ Příjmení: <input name="prijmeni"> <input type="Submit" name="odesli">
5
+ </form> ' ;
Original file line number Diff line number Diff line change
1
+ <?php
2
+ if (empty ($ _REQUEST ))
3
+ {
4
+ ?>
5
+ <form method="get" action="form2.php">
6
+ Příjmení: <input name="prijmeni">
7
+ <input type="Submit" name="odesli">
8
+ </form>
9
+ <?php
10
+ }
11
+ else
12
+ {
13
+ echo "Mám tě, odeslaný formuláři! Tys vyplnil " .$ _REQUEST ["prijmeni " ];
14
+ }
15
+ ?>
Original file line number Diff line number Diff line change
1
+ <?php
2
+ if (!isset ($ _REQUEST ['alreadysent ' ]))
3
+ {
4
+ ?>
5
+ <form method="get" action="form3.php">
6
+ Příjmení: <input name="prijmeni">
7
+ <input type="hidden" name="alreadysent" value="1">
8
+ <input type="Submit" name="odesli">
9
+ </form>
10
+ <?php
11
+ ob_flush ();
12
+ flush ();
13
+ }
14
+ else
15
+ {
16
+ echo "Mám tě, odeslaný formuláři! Tys vyplnil " .$ _REQUEST ["prijmeni " ];
17
+ ob_flush ();
18
+ flush ();
19
+ }
20
+ ?>
Original file line number Diff line number Diff line change
1
+ <?php
2
+ if ($ _SERVER ['REQUEST_METHOD ' ] == 'GET ' )
3
+ {
4
+ ?>
5
+ <form method="post" action="form4.php">
6
+ Příjmení: <input name="prijmeni">
7
+ <input type="Submit" name="odesli">
8
+ </form>
9
+ <?php
10
+ ob_flush ();
11
+ flush ();
12
+ }
13
+ else
14
+ {
15
+ echo "Mám tě, odeslaný formuláři! Tys vyplnil " .$ _REQUEST ["prijmeni " ];
16
+ ob_flush ();
17
+ flush ();
18
+ }
19
+ ?>
Original file line number Diff line number Diff line change
1
+ <?php
2
+ echo "Právě mi přišel formulář. Uživatel tam jistě zadal nějaké příjmení!<BR> \n" ;
3
+ echo "Á, je to <B> " .$ _REQUEST ["prijmeni " ]."</B><BR> " ;
4
+ foreach ($ _REQUEST as $ key => $ value )
5
+ {
6
+ echo "$ key => $ value<BR> " ;
7
+ }
8
+ ?>
You can’t perform that action at this time.
0 commit comments