Commit | Line | Data |
---|---|---|
1 | #!/home/harvie/Work/bash-httpd/bhp/bhp | |
2 | <?bhp source "$BHP_LIB"; echo "Pouzivam knihovnu $BHP_LIB<br /><br />" ?> | |
3 | ||
4 | <form action="?" method="GET"> | |
5 | <input type="text" name="pocet" value="5" /> | |
6 | <input type="text" name="text" value="test" /> | |
7 | <input type="submit" value="go" /> | |
8 | </form> | |
9 | <hr /> | |
10 | ||
11 | <?bhp | |
12 | pocet=$(urlvalue pocet); | |
13 | text=$(urlvalue text); | |
14 | for i in $(seq 1 $pocet); do | |
15 | echo "$i: $text<br />"; | |
16 | done; | |
17 | ?> | |
18 | ||
19 | <hr /> |