PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php // user_profile.php if (isset($_GET['user'])) { $user = htmlspecialchars($_GET['user']); echo "<h1>User Profile: $user</h1>"; // Simulate fetching user data from a database echo "<p>Welcome, $user!</p>"; } else { echo "<p>No user selected.</p>"; } ?> <!DOCTYPE html> <html> <head> <title>GET Method Links</title> </head> <body> <h1>Select a User</h1> <ul> <li><a href="user_profile.php?user=Alice">Alice</a></li> <li><a href="user_profile.php?user=Bob">Bob</a></li> <li><a href="user_profile.php?user=Charlie">Charlie</a></li> </ul> </body> </html>
Show:  
Copy Clear