<? ob_start(); 
require_once("functions.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link href="css/index.css" rel="stylesheet" type="text/css" />


</head>

<body>
<!-- outer -->
<div id="forget">
	<div class="webname">Egas C.Panel</div>
    <form action="<?= $_SERVER['PHP_SELF']; ?>" method="post">
    
                <table style="margin-top: 75px;">
                    
                    <tr>
                    <td>البريد :</td>
                        <?//fetch current email from db
                            $sel="select * from users WHERE active=1";
                            $qur=mysql_query($sel);
                            while($result=mysql_fetch_array($qur)){
                                extract($result);
                                $mail_db = $mail;
                            }
                        ?>
                        <td><input class="infor" type="text" name="mail" size="25" value="<?=$mail_db?>" /></td>
                        
                        
                    </tr>
                    <tr>
                        <td></td>
                        <td><input type="submit" name="submit" value="ارسال" /></td>
                        
                    </tr>
                    <tr>
                        <td></td>
                        <td><p align='right'><a href='index.php' style='text-decoration:none;'><font color='#666666'>Back To LogIn</font></a></p></td>
                        
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <?   
                                //proccess data 
                                forget_pass (); 
                           ?> 
                        </td>
                        
                    </tr>
                </table>
    
    </form>
    
    
</div>
<!-- outer -->
<div class="copyright">All coyright&copy; <a>Mideastnet.COM</a></div>
</body>
</html>
<?php ob_flush(); ?>