<!DOCTYPE html>
<html>
<head>
<title>Using the $_GET Superglobal</title>
</head>
<body>
<?php
// Check if the 'name' parameter is set in the URL
if(isset($_GET['name'])){
// If it is, store the value in a variable
$name = $_GET['name'];
// Output a message with the value of the 'name' parameter
echo "<p>Hello, $name!</p>";
} else {
// If the 'name' parameter is not set, output a default message
echo "<p>Welcome to my website!</p>";
}
?>
<p>To personalize the message, add your name to the URL like this:</p>
<p>http://localhost/mysite?name=John</p>
<p>Replace 'John' with your own name.</p>
</body>
</html>