Compare commits
2 Commits
de58d64213
...
829ee5c982
Author | SHA1 | Date | |
---|---|---|---|
|
829ee5c982 | ||
|
3aed4ce002 |
34
20241017/func.php
Normal file
34
20241017/func.php
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
function check_post(){
|
||||||
|
if($_SERVER["REQUEST_METHOD"] == "POST"){
|
||||||
|
$num1 = $_POST["num1"];
|
||||||
|
$num2 = $_POST["num2"];
|
||||||
|
$_SESSION["num1"] = $num1;
|
||||||
|
$_SESSION["num2"] = $num2;
|
||||||
|
|
||||||
|
if ($num1>0&& $num2> 0){
|
||||||
|
return true;
|
||||||
|
} else{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function add(int $num1, int $num2){
|
||||||
|
return $num1 + $num2;
|
||||||
|
}
|
||||||
|
|
||||||
|
function add10(int $num){
|
||||||
|
return $num+=10;
|
||||||
|
}
|
||||||
|
|
||||||
|
function add11(&$num){
|
||||||
|
return $num+= 11;
|
||||||
|
}
|
||||||
|
|
||||||
|
function nincsertek($num = 100){
|
||||||
|
return $num;
|
||||||
|
}
|
16
20241017/html.php
Normal file
16
20241017/html.php
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Függvények</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form action="" method="POST">
|
||||||
|
<input type="number" name="num1"> +
|
||||||
|
<input type="number" name="num2">
|
||||||
|
<button type="submit">Összead</button>
|
||||||
|
</form>
|
||||||
|
<p><?php echo $value?></p>
|
||||||
|
</body>
|
||||||
|
</html>
|
21
20241017/index.php
Normal file
21
20241017/index.php
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
include("func.php");
|
||||||
|
if(check_post()){
|
||||||
|
//$value = add($_POST["num1"], $_POST["num2"]);
|
||||||
|
//$value = add($num1, $num2);
|
||||||
|
$value = add($_SESSION["num1"], $_SESSION["num2"]);
|
||||||
|
global $value;
|
||||||
|
echo add10(5);
|
||||||
|
echo "<br>";
|
||||||
|
$n1 = 5;
|
||||||
|
echo add11($n1);
|
||||||
|
echo "<br>";
|
||||||
|
echo $n1;
|
||||||
|
echo "<br>";
|
||||||
|
echo nincsertek();
|
||||||
|
echo "<br>";
|
||||||
|
echo nincsertek(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
include("html.php");
|
22
ppl.txt
Normal file
22
ppl.txt
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
Push
|
||||||
|
1. Comp Bench press | Preferably 4-6 sets, lower to higher rep ranges throughout the excersise
|
||||||
|
2. Weighted dips | ~3 sets
|
||||||
|
3. Military press | ~3 sets
|
||||||
|
4. Lateral raises | ~3 sets
|
||||||
|
5. Tricep extension | ~3 sets
|
||||||
|
|
||||||
|
Pull
|
||||||
|
|
||||||
|
Comp deadlift | Preferably 4-6 sets, lower to higher rep ranges throughout the excersise
|
||||||
|
Weighted pull-ups | ~3 sets
|
||||||
|
Wide grip machine rows | ~2 sets
|
||||||
|
Close grip machine rows | ~2 sets
|
||||||
|
Bicep curls (EZ bar || dumbbels) | ~3 sets
|
||||||
|
|
||||||
|
Leg
|
||||||
|
|
||||||
|
Squats | Preferably 4-6 sets, lower to higher rep ranges throughout the excersise
|
||||||
|
(Front squats || Zercher squats (optional | max 2 sets))
|
||||||
|
Hamstring curl | ~3 sets
|
||||||
|
Leg extension | ~3 sets
|
||||||
|
Calf raises | ~3 sets
|
Loading…
Reference in New Issue
Block a user