Hi
I have created a php forgotten password page but when I receive the forgotten password email, I only get the email address in the email and not the username and password, its not collecting the username and password data for some reason
The php coding is below in the forgottenpassword.php
[php]<?php
if($go == “1”) {
$connect = mysql_connect(“host”,“username”,“password”);
if (!$connect) { die(“MySQL could not connect!”); }
$DB = mysql_select_db(‘databasename’);
if(!$DB) { die(“My SQL could not select Database!”); } }
$Username = $_POST[‘username’];
$Email = $_POST[‘email’];
$Email1 = “@”;
$Email_Check = strpos($Email,$Email1);
$Password = $_POST[‘password’];
$message_field = $_POST[‘username, password’];
$message = “$Email, $Username, $Password, $message_field”;
?>
Below is what the email comes out like
Email Address: [email protected]
Username:
Password:
my html form is below
<form action="forgotpassword.php" method="post">
E-mail: <input type="text" name="email" size="24" border="0"> <br>
<input type="hidden" name="username" border="0">
<input type="hidden" name="password" border="0">
<input type="hidden" name="go" value="1" border="0">
<input type="submit" name="submitButtonName" value="Submit" border="0"> </form>
Please help, been stuck on this for a while now
Kind regards
Ian