This is the code for Welcome3.html:
<html>
<head>
<title>Today's Date
164890896 </title>
<meta http-equiv="content-type'
content="text/html; charset=iso-8859-1" />
</head>
<body>
<form action="welcome3.php" method="get">
<label>First Name: <input type="text" name="firstname" />
</label><br />
<label>Last Name: <input type="text" name="lastname" />
</label><br />
<input type="submit" value="SUBMIT" />
</form>
</body>
</html>
Code for Welcome3.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/shtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Welcome! </title>
<meta http-equiv="content-type'
content="text/html; charset=iso-8859-1" />
</head>
<body>
<p><?php
$firstname = $GET['firstname'];
$lastname = $GET-['lastname'];
echo "Welcome to my Website, $firstname $lastname!";
?></p>
</body>
</html>
can someone tell me why it's not working when I upload it to my web host?