Forgot password AND CSS Stylesheets

Find the given code below for forgot password the part the student section. Here the student will be able to find the new password if he/she forgot the password.

Save the code in new file with name "forgot-password.php".


<?php
    include"../scripts/validaitons.php";
    $email="";
    $invalid="";
    $stats=true;
    if(isset($_POST['submit']))
    {
        if($_POST['emailid']=="")
        {
            $email="Please provide Email ID";
            $stats=validateEmail();
            if($stats==false)
            {
                $invalid="Please provide a valid Email ID";
            }
        }
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
      <title>Forgot Password</title>
      <link rel="STYLESHEET" type="text/css" href="../styles/student_forms.css" />
</head>
<body>

<!-- Form Code Start -->
<?php include("header.php"); ?>
<div id='student_forms' >
    <form name="forgot_password" method='post' accept-charset='UTF-8'>
    <fieldset>
    <legend>Forgot Password</legend>
    <div class='required'>* Required Fields :</div>
    <div class="container"><span class='required'>*<span>
        <label class='labels'>Your Email :</label></br>
        <input type="text" name="emailid" maxlength="50">
        <div class='required' align="right"><?php echo $email; echo $invalid; ?></div>
        <div class='short_msg'>A link to reset your password will be sent to the registered email address.</div>
    <input type="submit" name="submit" value="Submit"/></div>
    </fieldset>
    </form>
</div>
<?php include("footer.php"); ?>
</body>
</html>




=========================================================
Save the stylesheet with name "admission_form.css"


#admission_form select,
#admission_form option
{
    background-color : #ffff99;
}
#admission_form select
{
    font-family : Arial,  sans-serif;
    font-size: 0.7em;
    color : #000;
    padding : 2px;
    border : 1px solid #999;
    border-radius: 5px;
}
#admission_form legend
{
    font-family : Arial, sans-serif;
    font-size: 1.3em;
    font-weight:bold;
}
#admission_form .short_msg
{
    font-family : Arial, sans-serif;
    font-size: 0.7em;
    color:#333;
}
#admission_form fieldset
{
    border-style:ridge;
    border-width:10px;
    border-color:#98bf21;
    margin:auto;
    width: 230px;
    padding:20px;
    border:1px solid #ccc;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    -khtml-border-radius: 10px;
    border-radius: 10px;
}
#admission_form .labels
{
    font-family:Arial, sans-serif;
    font-size:0.8em;
    color:#333;
}
#admission_form input[type="text"],
#admission_form input[type="password"]
{
    font-family : Arial, Verdana, sans-serif;
    font-size: 0.8em;
    color : #000;
    padding : 3px;
    border : 1px solid #999;
    border-radius: 5px;
}
#admission_form .smallinput
{
    height:18px;
    width:100px;
}
#admission_form input[type="submit"]
{
    width:80px;
    height:30px;
    color : #009;
    background-color : #ffff99;
}
#admission_form input[type="text"],
#admission_form input[type="password"]
{
    background-color : #ffff99;
}

#admission_form .required
{
    font-family : Arial, sans-serif;
    font-size: 0.8em;
    color:#FF0000;
}
.mainDiv
{
    margin:auto;
    padding:20px;
    width: 800px;
    //height:200px;
    //border:red solid;
    border-radius: 10px;
}
.heading
{
    background:BROWN;
}
.divleft
{
    float:left; margin-right:20px;
}
.divright
{
    float:left; margin-right:20px;
}



===========================================================

Save the new file with name "student_forms.css" code is given below :

#student_forms legend
{
    font-family : Arial, sans-serif;
    font-size: 1.3em;
    font-weight:bold;
}
#student_forms .short_msg
{
    font-family : Arial, sans-serif;
    font-size: 0.7em;
    color:#333;
}
#student_forms fieldset
{
    border-style:ridge;
    border-width:10px;
    border-color:#98bf21;
    margin:auto;
    width: 440px;
    height:240px;
    padding:30px;
    border:1px solid #ccc;
    border-radius: 10px;
}
#student_forms .container
{
    margin-top:8px;
    margin-bottom:10px;
    float:right;
}
#admin_forms .containerleft
{
    margin-top:8px;
    margin-bottom:10px;
    float:right;
}
#student_forms .labels
{
    font-family:Arial, sans-serif;
    font-size:1em;
    color:#333;
}
#student_forms input[type="text"],
#student_forms input[type="password"]
{
    font-family : Arial, Verdana, sans-serif;
    font-size: 0.9em;
    color : #000;
    padding : 3px;
    border : 1px solid #999;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
}
#student_forms input[type="text"],
#student_forms input[type="password"]
{
    height:18px;
    width:220px;
}
#student_forms input[type="submit"]
{
    width:80px;
    height:30px;
    padding-left:0px;
}
#student_forms input[type="text"]:focus,
#student_forms input[type="password"]:focus
{
    color : #009;
    border : 1px solid #990000;
    background-color : #ffff99;
    font-weight:bold;
}

#student_forms .required
{
    font-family : Arial, sans-serif;
    font-size: 0.8em;
    color:#FF0000;
}
.mainDiv
{
    margin:auto;
    padding:20px;
    width: 800px;
    //height:200px;
    //border:red solid;
    border-radius: 10px;
}
.heading
{
    background:BROWN;
}



==========================================

Save the given code below with new file name "style.css"

/* Label */
samp
{
    width: 300px;
    padding-left: 20px;
    margin: 5px;
    float: left;
    text-align: left;
    font-family:Arial, sans-serif;
    font-size:1em;
    color:#333;
}
kbd
{
    width: 60px;
    padding-left: 20px;
    margin: 5px;
    float: left;
    text-align: left;
    font-family:Arial, sans-serif;
    font-size:1em;
    color:#333;
}
select
{
    margin: 5px;
    padding: 0px;
    float: left;
}
span
{
    width: 10px;
    padding-left: 20px;
    margin: 5px;
    float: left;
    text-align: left;
    font-family : Arial, sans-serif;
    font-size: 0.8em;
    color:#FF0000;
   
}
/* Input, Textarea */
input[type="text"]
{
    margin: 5px;
    padding: 0px;
    float: left;
}
pre
{
    margin: 5px;
    padding: 0px;
    float: left;
}
label
{
    font-family : Arial, sans-serif;
    font-size: 0.8em;
    color:#FF0000;
    float: left;
}
input[type="checkbox"]
{
    margin: 5px;
    padding: 0px;
    float: left;
}
/* BR */

br
{
    clear: left;
}
.required
{
    color:#FF0000;
}


===========================================

all stylesheet files must be save in given directory path "localhost/MyProject/styles/"

Application Submited Successful And Header or Footer Part for Student Pages

This post is about the Request successfully submitted page to display the message here and header or footer part of the student pages.

Save the code given below in new files.. 1st is name "succesful.php"

<?php
    include("../db.php");
    include("../functions.php");
    if (isset($_GET['edit']))
    {   
        $enrolmentno = $_GET['edit'];
        $link = "<a href='index.php?edit=$enrolmentno'><img src='../images/gohome.png' title='Go Home'></a>";
    }
    if(isset($_POST['submit']))
    {
        mysql_query("update program_details set change_status=1 where enrolmentno = $enrolmentno");
        header("Location: index.php?edit=$enrolmentno");
        echo "Request Successfully Submitted.";
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
      <title>Welcome To Online Admission(Student Zone)</title>
      <link rel="STYLESHEET" type="text/css" href="../styles/admission_form.css" />
</head>
<body >
<?php include("header.php");?>
<div class='mainDiv'>
    <div><font size="4" name="sans-serif" color="white"><div class="heading" align="center"><b>Welcome To Distance Education University Online Admission Form</b></br>Student Zone</div></font></br></br>
    <pre align="center">Your Request Has Been Successfully Submitted For Approval.
   
   
    <?php echo $link; ?>
       
    </pre>
</div></br>
<?php include("footer.php");?>
</body>
</html>





The code given below is of header part save the code in new file name "header.php".

<div style="margin:auto;width:850px;border-color:#98bf21;">
    <img src="../images/banner.png">
</div>


The last code given below is for footer part the page save it with name "footer.php".

</br>
<div style="margin:auto;width:850px;border-color:#98bf21;height:125px;" align="left">
    <img src="../images/footer.png">
</div>

Student Detail Page

This page is to display the student detail and registration status of year or semester and other made requests by the student. Save the code in new file name "detail.php". Kindly complete the code your self it's incomplete.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
      <title>Welcome To Online Admission(Student Zone)</title>
      <link rel="STYLESHEET" type="text/css" href="../styles/admission_form.css" />
</head>
<body >
<?php include("header.php");?>
<div class='mainDiv'>
    <div><font size="4" name="sans-serif" color="white"><div class="heading" align="center"><b>Welcome To Distance Education University Online Admission Form</b></br>Student Zone</div></font></br></br>
    <div align="center">
        <table style="border:1px solid black;border-radius:10px;">
            <tr>
                <td>
                    <table style="border:1px solid black;border-radius:10px;">
                        <tr>
                        <td align=center colspan=3 style="border:1px solid black;border-radius:10px;">Welcome Sunni Kumar</br>Program : MCA</br>Enrolment No : <tr>
                        </tr>
                        <tr>
                            <td>
                                <label class='labels'>Admission Year</label>
                                <td>:</td>
                            </td>
                            <td>
                                <input type="text" name="stuname">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label class='labels'>Admission valid upto</label>
                            </td>
                            <td>:</td>
                            <td>
                                <input type="text" name="programcode">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label class='labels'>Father's Name</label>
                            </td>
                            <td>:</td>
                        </tr>
                        <tr>
                            <td>
                                <label class='labels'>Current Address</label>
                            </td>
                            <td>:</td>
                        </tr>
                        <tr>
                            <td>
                                <label class='labels'>Regional Center</label>
                            </td>
                            <td>:</td>
                        </tr>
                        <tr>
                            <td>
                                <label class='labels'>Study Center</label>
                            </td>
                            <td>:</td>
                        </tr>
                        <tr>
                            <td>
                                <label class='labels'>Mobile No.</label>
                            </td>
                            <td>:</td>
                        </tr>
                        <tr>
                            <td>
                                <label class='labels'>Email ID</label>
                            </td>
                            <td>:</td>
                        </tr>
                    </table>   
                </td>
                <td>
                    <table style="border:1px solid black;width:350px;height:266px;border-radius:10px;">
                    <tr>
                        <td colspan=3 align="center">
                            <label >Request Made If Any</label>
                        </td>
                       
                    </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan=2>
                    <table style="border:1px solid black;width:730px;border-radius:10px;">
                <tr>
                    <td align=center>Course Registration Details</td>
                </tr>
            </table>
                </td>
            </tr>
        </table>
    </div>
</div></br>
<?php include("footer.php");?>
</body>
</html>


Re-Registratin Form


This post is about the re-registration of student in next semester or next year find the code given below and save in new file with name "re-register.php" in student directory.

<?php
    include("../db.php");
    include("../functions.php");
    if (isset($_GET['edit']))
    {    $enrolmentno = $_GET['edit'];    }
    $result = mysql_query("select name, sc_alloted, program_code from program_details as pd, student_detail as sd where pd.enrolmentno = $enrolmentno and sd.enrolmentno = $enrolmentno");
    $getresult = mysql_fetch_array($result);
    $name = $getresult['name'];
    $sc = $getresult['sc_alloted'];
    $pcode = $getresult['program_code'];
    if(isset($_POST['submit']))
    {
        echo $status = re_registration($enrolmentno);
        if($status==1)
            header("Location: successful.php?edit=$enrolmentno");
        else
            echo "<script language='javascript'>alert('Unable to process request please try later.')</script>";
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
      <title>Welcome To Online Admission(Student Zone)</title>
      <link rel="STYLESHEET" type="text/css" href="../styles/admission_form.css" />
    <link rel="STYLESHEET" type="text/css" href="../styles/style.css" />
    <script language="javascript">
        function validate()
        {
            if(admission_form.semyear.selectedIndex==0)
            {
                alert("Register for semester of Year must be selected.");
                return false;
            }
            if(admission_form.type.selectedIndex==0)
            {
                alert("Register for type(Year or Semester) must be selected.");
                return false;
            }
            if(admission_form.BankName.selectedIndex==0)
            {
                alert("Bank name must be selected.");
                return false;
            }
            if(admission_form.DDAmt.value=="")
            {
                alert("Draft amount must be filled.");
                return false;
            }
            if(admission_form.ddNo.value=="")
            {
                alert("Draft number must be filled.");
                return false;
            }if(admission_form.ddDate.value=="")
            {
                alert("Draft date must be filled.");
                return false;
            }if(admission_form.issue.value=="")
            {
                alert("Place of isssued draft must be filled.");
                return false;
            }if(admission_form.payat.value=="")
            {
                alert("Payable at field must be filled.");
                return false;
            }
            return true;
        }
    </script>
</head>
<body >
<?php include("header.php");?>
<div class='mainDiv'>
    <div><font size="4" name="sans-serif" color="white"><div class="heading" align="center"><b>Welcome To Distance Education University Online Admission Form</b></br>Student Zone</div></font></br></br>
        <div align="center" >
        <form id='admission_form' action="" method="post">
        <table>
                <tr><td><label class='labels'>Name</label></td>
                <td><samp><?php echo $name;?></samp></td></tr>
                <tr><td><label class='labels'>Program Code</label></td>
                <td><samp><?php echo $pcode;?></samp></td></tr>
                <tr><td><label class='labels'>Study Center </label></td>
                <td><samp><?php echo $sc;?></samp></td></tr>
                <tr><td><label class='labels'>Register For</label></td><td>
                <samp><select name="semyear">
                    <option value='select'>Select</option>
                    <option value='II'>II</option>
                    <option value='III'>III</option>
                    <option value='IV'>IV</option>
                    <option value='V'>V</option>
                    <option value='VI'>VI</option>
                </select><span>*</span>
                <select name="type">
                    <option value='select'>Select</option>
                    <option value='Year'>Year</option>
                    <option value='Semester'>Semester</option>
                </select><span>*</span></samp></td></tr>
                <tr><td><label class='labels'>Name of the Bank</label></td><td>
                <samp><select name="BankName">
                    <option selected="selected" value="select ">--Select--</option>
                    <option value="Allahabad Bank">Allahabad Bank</option>
                    <option value="Andhra Bank">Andhra Bank</option>
                    <option value="Bank of Baroda">Bank of Baroda</option>
                    <option value="Bank of India">Bank of India</option>
                    <option value="Bank of Maharashtra">Bank of Maharashtra</option>
                    <option value="Canara Bank">Canara Bank</option>
                    <option value="Central Bank of India">Central Bank of India</option>
                    <option value="Corporation Bank">Corporation Bank</option>
                    <option value="Dena Bank">Dena Bank</option>
                    <option value="Indian Bank">Indian Bank</option>
                    <option value="Indian Overseas Bank">Indian Overseas Bank</option>
                    <option value="Oriental Bank of Commerce">Oriental Bank of Commerce</option>
                    <option value="Punjab and Sind Bank">Punjab and Sind Bank</option>
                    <option value="Punjab National Bank">Punjab National Bank</option>
                    <option value="State Bank of Bikaner &amp; Jaipur">State Bank of Bikaner &amp; Jaipur</option>
                    <option value="State Bank of Hyderabad">State Bank of Hyderabad</option>
                    <option value="State Bank of India">State Bank of India</option>
                    <option value="State Bank of Indore">State Bank of Indore</option>
                    <option value="State Bank of Mysore">State Bank of Mysore</option>
                    <option value="State Bank of Patiala">State Bank of Patiala</option>
                    <option value="State Bank of Saurashtra">State Bank of Saurashtra</option>
                    <option value="State Bank of Travancore">State Bank of Travancore</option>
                    <option value="Syndicate Bank">Syndicate Bank</option>
                    <option value="UCO Bank">UCO Bank</option>
                    <option value="Union Bank of India">Union Bank of India</option>
                    <option value="United Bank of India">United Bank of India</option>
                    <option value="Vijaya Bank">Vijaya Bank</option>
                </select><span> * </span></samp></td></tr>
                <tr><td><label class='labels'>Draft Amount</label></td><td>
                <samp><input type="text" name="DDAmt"><span>*</span></samp></td></tr>
                <tr><td><label class='labels'>Bank Draft No.</label></td><td>
                <samp><input type="text" name="ddNo"><span>*</span></samp></td></tr>
                <tr><td><label class='labels'>Bank Draft Date</label></td><td>
                <samp><input type="text" name="ddDate"><span>*</span></samp></td></tr>
                <tr><td><label class='labels'>Place of Issue</label></td><td>
                <samp><input type="text" name="issue"><span>*</span></samp></td></tr>
                <tr><td><label class='labels'>Payable At</label></td><td>
                <samp><input type="text" name="payat"><span>*</span></samp></td></tr>
        </table>
                <br/><input type="submit" name="submit" value="Submit" onclick="return validate();"><br/><br/>
                <div align="justify">Note :- All details filled by you should be correct as you wll send us the documents. Details filled here should be match with your documents. In case we found any
                mistake the registration could be cancelled.</div>
    </form>
    </div>
</div></br>
<?php include("footer.php");?>
</body>
</html>


Student Home Page(Online Admission Project)

This is the homepage of the student after login to the student account. Save the code in new file with name "index.php".

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
      <title>Welcome To Online Admission(Student Zone)</title>
      <link rel="STYLESHEET" type="text/css" href="../styles/student_forms.css" />
</head>
<body >
<?php include("header.php"); if(isset($_GET['edit'])) $enrolmentno = $_GET['edit'];?>
<div class='mainDiv'>
    <div><font siz0e="4" name="sans-serif" color="white"><div class="heading" align="center"><b>Welcome To Distance Education University Online Admission Form</b></br>Student Zone</div></font></br></br>
    <div></div>
    <form id='admission_form' action="" method="post">
    <table>
        <tr>
            <td width="300">
                <div><a href="changeaddress.php?edit=<?php echo $enrolmentno;?>">Request For Change Of Address</a></div>
                <div><a href="studycenter.php?edit=<?php echo $enrolmentno;?>">Request For Change Of Study Center</a></div>
                <div><a href="re-register.php?edit=<?php echo $enrolmentno;?>">Programme Re-Registration</a></div>
                <div><a href="detail.php?edit=<?php echo $enrolmentno;?>" >View Registration Details</a></div>
                </br></br>
            </div>
            </td>
            <td width="350" align="right">
                <div><a href="instructions.php" ><img src="images/onlineaddmission.png"></a>
                </div>
            </td>
        </tr>
    </table>    </form>
</div>
<?php include("footer.php");?>
</body>
</html>



Change Study Center (Online Admissio Project)

The Given below code is about to change the Study Center or make request to admin to change the address of study center. In request made by student will be reviewed by the admin and make it change or reject. Save the code in new file with name "changestudycenter.php" in student directory.

<?php
    include("../functions.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
      <title>Welcome To Online Admission(Student Zone)</title>
      <link rel="STYLESHEET" type="text/css" href="../styles/admission_form.css" />
    <link rel="STYLESHEET" type="text/css" href="../styles/style.css" />
</head>
<body >
<?php include("header.php");?>
<div class='mainDiv'>
    <div><font size="4" name="sans-serif" color="white"><div class="heading" align="center"><b>Welcome To Distance Education University Online Admission Form</b></br>Admin</div></font></br></br>
    <div align="center">
        <form id='admission_form' action="" method="post">
            <?php getStudentSC(); ?>
    </form>
    </div>
</div></br>
<?php include("footer.php");?>
</body>
</html>


Address Change Request By Student (online Admission Project)

This following given code is to make the address change request by student from his profile. Save the code with "changeaddress.php" name in student directory.

The code is given below :

<?php
    include("../db.php");
    include("../functions.php");
    if (isset($_GET['edit']))
    {    $enrolmentno = $_GET['edit'];        }
   
    $result = mysql_query("select name, address, city, state, pincode, program_code from program_details as pd, student_detail as sd where pd.enrolmentno = $enrolmentno and sd.enrolmentno = $enrolmentno");
    $getresult = mysql_fetch_array($result);
    $name = $getresult['name'];
    $address = $getresult['address']."n";
    $address .= $getresult['city']." - ";
    $address .= $getresult['pincode'];
    $pcode = $getresult['program_code'];
    $result = mysql_query("select enrolmentno from student_request where enrolmentno = $enrolmentno");
    $getresult = mysql_fetch_array($result);
    if(isset($_POST['submit']))
    {
        $address = $_POST['add1'].$_POST['add2'].$_POST['add3'];
        $city = $_POST['city'];
        $state = $_POST['state'];
        $pincode = $_POST['pin'];
        if($getresult['enrolmentno'])
        {
            mysql_query("UPDATE student_request SET enrolmentno=$enrolmentno, address='$address', city='$city', state='$state',pincode=$pincode, address_status =1 WHERE enrolmentno=$enrolmentno");
        }
        else
        {
            echo "<script language='javascript'>alert('Enrolment Number Not Found.')</script>";
        }
        header("Location: successful.php?edit=$enrolmentno");
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
      <title>Welcome To Online Admission(Student Zone)</title>
      <link rel="STYLESHEET" type="text/css" href="../styles/admission_form.css" />
      <script Language="javascript">
            function validate()
            {
                if(admission_form.add1.value=="")
                {
                    alert("Address 1 must be filled.");
                    return false;
                }
                if(admission_form.city.value=="")
                {
                    alert("City must be filled.");
                    return false;
                }
                if(admission_form.state.selectedIndex==0)
                {
                    alert("State must be selected.");
                    return false;
                }
                return true;
            }
      </script>
</head>
<body >
<?php include("header.php");?>
<div class='mainDiv'>
    <div><font size="4" name="sans-serif" color="white"><div class="heading" align="center"><b>Welcome To Distance Education University Online Admission Form</b></br>Student Zone</div></font></br></br>
    <div align="center">
        <form id='admission_form' action="" method="post">
        <table>
            <tr>
                <td>
                    <label class='labels'>Name : </label>
                </td>
                <td>
                    <?php echo $name; ?>
                </td>
            </tr>
            <tr>
                <td>
                    <label class='labels'>Program Code : </label>
                </td>
                <td>
                    <?php echo $pcode; ?>
                </td>
            </tr>
            <tr>
                <td><label class='labels'>Full Address : </label></td>
                <td><pre><?php echo $address; ?></pre></td>
            </tr>
            <tr><tr><td colspan=2><div>New Address to be change :</div></td></tr>
                <td>
                    <label class='labels'>Address Line 1 : </label>
                </td>
                <td>
                    <input type="text" name="add1"><span class='required'>*</span>
                </td>
            </tr>
            <tr>
                <td>
                    <label class='labels'>Address Line 2 : </label>
                </td>
                <td>
                    <input type="text" name="add2">
                </td>
            </tr>
            <tr>
                <td>
                    <label class='labels'>Address Line 3 : </label>
                </td>
                <td>
                    <input type="text" name="add3">
                </td>
            </tr>
            <tr>
                <td>
                    <label class='labels'>City </label>
                </td>
                <td>
                    <input type="text" name="city"><span class='required'>*</span>
                </td>
            </tr>
            <tr>
                <td>
                    <label class='labels'>State : </label>
                </td>
                <td>
                    <select name="state">
                        <?php state(); ?>
                    </select><span class='required'>*</span>
                </td>
            </tr>
            <tr>
                <td>
                    <label class='labels'>Pincode</label>
                </td>
                <td>
                    <input type="text" name="pin"><span class='required'>*</span>
                </td>
            </tr>
            <tr><td>&nbsp</td></tr>
            <tr>
                <td colspan=3 align="center">
                    <input type="submit" name="submit" value="Submit" onclick="return validate();">
                </td>
            </tr>
        </table>
    </form>
    </div>
</div></br>
<?php include("footer.php");?>
</body>
</html>



Login Page for Student (Online Admission Project)

This post is about the login page of the student section. The student will be able to login here for online admission project to make the address change request, the study center change, and will be able to view own profile.

The Source Code is as follow given below save the code with name "login.php" in student directory :

<?php
    include("../functions.php");
    $username="";
    $password="";

    if(isset($_POST['submit']))
    {
        if($_POST['username']=="")   
            $username="Please provide username";
        if($_POST['password']=="")
            $password="Please provide password";
        $status = studentlogin();
        if($status == 1)
            echo "<script type='text/javascript'>alert('Invalid Username/Password.');</script>";
        //if($status == 0)
        //{}
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
      <title>Login</title>
      <link rel="STYLESHEET" type="text/css" href="../styles/student_forms.css" />
    <!--<script src="scripts/validation.js" type="text/javascript" ></script>-->
</head>
<body>
<?php include("header.php"); ?>
<!-- Form Code Start -->
<div id='student_forms' >
    <form name="loginForm" method='post' accept-charset='UTF-8' >
    <fieldset align="right" style="background-repeat:no-repeat;background-image: url(../images/student-login.png);">
    </br>
    <div class='required'>* Required Fields</div>
        <div class="container"><span class='required'>*<span>
        <label class='labels'>Username :</label></br>
        <input type="text" name="username" maxlength="50">
        <div class="required" align="right"><?php echo $username; ?></div>
        <span class='required'>*<span>
        <label class='labels'>Password :</label></br>
        <input type="password" name="password" maxlength="50">
        <div class="required" align="right"><?php echo $password ?></div></br>
        <input type="submit" name="submit" value="Submit"/></br></br>
        <div class='short_msg'><a href="forgot-password.php">Forgot Password?<a>&nbsp&nbsp<a href="../">Back</a></div>
    </div>
    </fieldset>
    </form>
</div>
<?php include("footer.php"); ?>
</body>
</html>



To get the student username or password go to localhost/phpmyadmin/ and find the student_login table get the username and password there.