Having issues passing over values from form to another page

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.

[php]<?php

session_start();
if(isset($_POST[‘submit’])) {

$user = $_POST[‘username’];
$pass = $_POST[‘password’];

echo “

Hello $user

Goodbye $pass

”;
}else {

?>

Test Go back there username
password
<?php }?> [/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service