include('includes/topnav.php')?> | |
if (isset($_POST['test']))
{
$mailid = $_POST['mailid'];
$course = $_POST['course'];
require('includes/dbconn.php');
require('includes/getcourse.php');
$query="select cpwd from course_user where vemail='$mailid' and scid=$course";
$result=mysql_query($query);
if (mysql_num_rows($result)<1)
{
echo 'Mailid does not exist';
}
else
{
$c=getcourse($course);
$row=mysql_fetch_row($result);
$t=mail($mailid,$c.' : Login Info ','Your Login id is '.$mailid.' and Your password is '. $row[0],"From: Rene Vidal
Please enter the email address you registered with to obtain your password.
} ?> |