Solutions

This commit is contained in:
2025-01-25 16:42:37 +01:00
parent fbfce8033a
commit 3c31c28959
6 changed files with 75 additions and 5 deletions

View File

@@ -1,12 +1,18 @@
<?php
$title = $_GET["title"];
$author = $_GET["name"];
$pageContent = "<!DOCTYPE html>
<html lang='fr'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>TITRE DU DOCUMENT A CHANGER</title>
<title>$title - créée par $author</title>
</head>
<body>
Bienvenue sur votre page personnelle
</body>
</html>";
</html>";
$page = fopen($author."html" , "w");
fwrite($page, $pageContent);
fclose($page);