Password recovery form
query($main_query); $num_rows = $foo->numrows($main_result); if ($num_rows > 0) { for ($i = 0; $i < $num_rows; $i++) { $password = $foo->result($main_result, $i, 'password'); $mailTo = "$email"; $mailSubject = "Lost password ib-sm.org"; $mailHeader = "From: International Business-Society Management <$from>"; $message = "Dear $name,\n\n"; $message .= "You have asked to resend your password.\n\n"; $message .= "Your password is: $password\n\n"; mail($mailTo, $mailSubject, $message, $mailHeader); print "

\n"; print "You password is send to $email.

\n"; print "Login\n"; } } } else { ?>

Please fill out the form below to have your password retrieved and emailed to you.

Name
Email