Skip to content

Instantly share code, notes, and snippets.

@LocalCommit
Last active August 29, 2015 14:18
Show Gist options
  • Save LocalCommit/a5484558ea8bfe1b22c0 to your computer and use it in GitHub Desktop.
Save LocalCommit/a5484558ea8bfe1b22c0 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Query String Link Example</title>
</head>
<body>
<p><a href="name.php?name=Kevin">Hi, I&rsquo;m Kevin!</a></p>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Query String Link Example</title>
</head>
<body>
<p>
<?php
$name = $_GET['name'];
echo 'Welcome to our website, ' . $name . '!';
?>
</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment