GIF89a;
Direktori : /home/serb/public_html/ |
Current File : /home/serb/public_html/change_email.php |
<? session_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); $page="my_account"; ?> <? include "includes/header_top.php";?> <? if($_POST) { $date=date('Y-m-d'); $ins="UPDATE user_info SET email='".$_POST['chang_email']."' WHERE userid='".$_GET['userid']."'"; execute_query($ins); ?> <script language="javascript"> location.href="my-account.php"; </script> <? } ?> <body> <? include "includes/header.php";?> <div class="hdr_foo"> <div class="hrd_ftmenu"> </div> </div> <div class="main_bg"> <div style="height:32px;"></div> <div style="width:1000px; margin:0 auto;"> <div class="menuleft_contain"> <? include "includes/acount_leftcontent.php";?> </div> <div class="acountright_contain"> <? $sql="SELECT * FROM user_info WHERE userid='".$_SESSION['userid']."'"; $res=execute_query($sql); $row=mysql_fetch_array($res); $num=mysql_num_rows($res); ?> <div class="acccmid1_header">Change Email</div> <div class="accountrightct_mid"> <div class="small_space"></div> <div class="profile_data"> <?php /*?><? $sql="SELECT * FROM user_info WHERE userid='".$_SESSION['userid']."'"; $res=execute_query($sql); $row=mysql_fetch_array($res); $num=mysql_num_rows($res); ?><?php */?> <form action="<?=$_SERVER['PHP_SELF'] ?>?userid=<?=$_GET['user_id']?>" method="post" name="emailchange"> <table border="0" cellpadding="0" cellspacing="4" align="center" style="margin:0 auto;"> <tr height="5"></tr> <tr> <td class="logintext">Email :</td> <td><input type="text" value="<?=$row['email']?>" name="chang_email" class="main_input3333" /></td> </tr> <tr height="15"></tr> <tr> <td></td> <td><input type="image" src="images/submit.png" /></td> </tr> <tr height="10"></tr> </table> </form> <br class="spacer" /> </div> <br class="spacer" /> </div> </div> <br class="spacer" /> </div> <br/> </div> <? include "includes/footer.php";?>