Hey, I’m working on Kevin Yank books (fifth edition). Now I’m stuck on page 65. My browsers keep said undefined index for both first and last name, even when I used code archive. Can somebody help me? (here I quoted the code)
<!DOCTYPE html>
<html lang=“en”>
<head>
<meta charset=“utf-8”>
<title>Query String Link Example</title>
</head>
<body>
<p><a href=“name.php?firstname=Kevin&lastname=Yank”>Hi, I’m Kevin Yank!</a></p>
</body>
</html>
thanks for the solution, it was helpful.
also I want to ask another thing, why in the browser the result appear without the space (like when you use space bar) between the name?
Glad to be of help but I don’t understand the space question. Where does the space not appear? And what code is supposed to produce that missing space?
it supposed to appeared ‘Welcome to the website, John Doe’ but instead it just ‘Welcome to the website, JohnDoe’ (John Doe, based on the input like you gave)
I think the . (dot) supposed to give a space between John and Doe.