473,394 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 5064
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

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

Similar topics

by: kwindham | last post by:
This program doesn't seem like it should be too hard, but I cannot figure it out. Here is the assignment: Password Verifier - Write a program to verify passwords, satisfying the following...
by: Andrea | last post by:
Hi, i've installed OCS Inventory NG for inventory and it has installed Mysql ver: mysql Ver 14.12 Distrib 5.0.18, for Win32 now i have to make a dump for save database but don't forget the...
by: Kevin O'Brien | last post by:
Hello, I am creating a sign on screen for my application in which I want to store the username and password in a database table. I was thinking of putting a combo box connected to the database...
by: =?Utf-8?B?QW1qYWQ=?= | last post by:
I have one question about forget password control with asp.net 2.0 we are using here Groupwise . how can i send email using group wise instead of SMPT and how to change the setting for or i have to...
by: chaos | last post by:
Hi all , i occur a problem in my forget password page as the page appear as blank page . Can anyone help me find out wt went wrong with my code. <?php require_once('Connections/conn.php'); ?>...
by: whitey | last post by:
Hi All, The following script works when username(or email) and password are in 1 table. what i need to know is how to adjust the code to reflect that the email will be held in tbl_email and the...
by: ghjk | last post by:
I'm developing web site using php and my sql. In there i want to send a mail including new password to user, when he forget his password. How can i send mail using php? Could you please help me?
by: harshadd | last post by:
I have 3000+ exchange users and most of the time they forget the password and we reset it for them. again problem is this happens on phone. so no guaranty that user it self has requested to...
by: dxting | last post by:
Hi Can anyone tell me how to write the forget password function in my web page.My web page haven't publish yet. Just using it as local host. Means don't have domain yet.
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.