I have an HTML file with the code (omitting other tags)"
<form action = "check.php" METHOD = "post" >
<label>username<input type = "text" name = "username" size = "25" maxlength = "30" /></label><br />
<label>password<input type = "password" name = "password" size = "25" maxlength = "30" /></label><br />
<input type = "submit" class = "button" value = "Submit" />
This is my form
My PHP is [code] <?php
session_start();
$user = $_POST[‘username’];
$pass = $_POST[‘password’];
echo $user;
?>
Hello <?php echo $user; ?>
Goodbye <?php echo ("$password"); ?>
<label><a href = "Login.html" name = "login">Go back there</a></label>
[/code]
Am I not passing things over correctly? Apache is running under XAMPP.
I’m using post method.