php repozitar
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
748 B

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
$promena = "NEJAKY TEXT"; //proměnná
for ($i=0; $i < 4; $i++) {
echo "<p>".$i.". ".$promena."</p>"; // můžu vládat HTML kod
}
?>
<!-- Formulář -->
<form action="formular.php" method="get">
<input type="text" name="name" id="name"> <br>
<input type="submit" value="Odeslat formular">
</form>
<!-- vypis formulare ze souboru -->
<?php
$fname = "text.txt";
$myfile = fopen($fname,"r");
echo fread($myfile,filesize($fname));
fclose($myfile);
?>
</body>
</html>