471,888 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,888 software developers and data experts.

forget password can't function...

127 100+
Below is my forget password, why cannot function?? When i click on the submit button, it still remain on the same page and just like i didn't click anything...

if($go == "1")
mysql_select_db("ums e-job portal");

$sql = @mysql_query("SELECT * FROM company WHERE username='$username' && emailAdd='$email' ");
echo "The username and email address do not match.";
$query = mysql_query($sql);
$fPass = mysql_fetch_array($query);

$to = "SELECT * FROM company WHERE emailAdd='$email' ";
$subject = "Your Password";
$body = "SELECT * FROM company WHERE username='$username' && password='$password' ";
$headers = "From: admin@localhost.com\n";

mail($to, $subject, $body, $headers);
echo "Your Password has been sent to $to";

[HTML]<form action="<?= $PHP_SELF ?>" method="post">
Username: <input type="text" name="username" size="24" border="0"><br>
E-mail: <input type="text" name="email" size="24" border="0"><br>
<input type="hidden" name="go" value="1" border="0"><input type="submit" name="submitButtonName" border="0">
Feb 4 '07
52 4845
bb nicole
127 100+
You will need to keep it running in order to use mail.

sorry, can u give me some guildeline how to keep it running??
Feb 26 '07 #51
3,237 Expert 2GB
sorry, can u give me some guildeline how to keep it running??
Don't hit the X button at the top.
Feb 26 '07 #52
bb nicole
127 100+
Try this:

From the start menu, click Run.
Type in 'cmd'.
From the command prompt, type 'telnet localhost 25'.
What do you see?

When i do the above process, it show me
220 localhost
so, what should i do now?? can u give me some guildeline??
and when send the mail on forget password, it show me:
Warning: mail(): SMTP server response: 503 in C:\Apache2\Apache2\htdocs\forgotPassword.php on line 25
Error sending email
Thanks a lot, motoma..
Mar 2 '07 #53

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by kwindham | last post: by
1 post views Thread by Andrea | last post: by
11 posts views Thread by Kevin O'Brien | last post: by
reply views Thread by =?Utf-8?B?QW1qYWQ=?= | last post: by
2 posts views Thread by whitey | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.