How do I add this script
<?php header('Location: example.com/login.php?name='); ?>
<?php echo 'Hello' . htmlspecialchars($_GET["name"]) . ', welcome'; ?>
You can use string concatenation; in PHP, you can combine two strings together (concatenate string) with a period (
<?php header('Location: http://www.example.com/login.php?name=' . htmlspecialchars($_GET['name'])); exit();
A few other changes that you'll see:
exit()call after I set the Location header; this will cause the redirect to happen without executing any more code, which is frequently undesireable.
$_GET['name'] = 'Mary';, this would redirect the user to