Ejemplo n.º 1
0
}
if (login_check($mysqli)) {
    if (isset($_POST['editPassword'])) {
        editPassword($mysqli, $_POST['oldPasswordText'], $_POST['passwordText1'], $_POST['passwordText2']);
        header('Location: edit_account.php');
    }
    if (isset($_POST['editName'])) {
        editName($mysqli, $_POST['passwordText'], $_POST['nameText']);
        header('Location: edit_account.php');
    }
    if (isset($_POST['editAccountName'])) {
        editAccontName($mysqli, $_POST['passwordText'], $_POST['accountNameText1'], $_POST['accountNameText2']);
        header('Location: edit_account.php');
    }
    if (isset($_POST['editEmail'])) {
        editEmail($mysqli, $_POST['passwordText'], $_POST['emailText1'], $_POST['emailText2']);
        header('Location: edit_account.php');
    }
    echo '<br>Edit Password: <br> <form method=\'post\' action=\'' . htmlspecialchars($_SERVER['PHP_SELF']) . '\'><br>
	Old Password: <input type=\'password\' name = \'oldPasswordText\' /><br>
	New Password : <input type=\'password\' name = \'passwordText1\' /><br>
	New Password again: <input type=\'password\' name = \'passwordText2\' /><br>
	<input type=\'submit\' name=\'editPassword\' value=\'edit\' />
	</form><br><br>';
    echo 'Edit Name: <br> <form method=\'post\' action=\'' . htmlspecialchars($_SERVER['PHP_SELF']) . '\'><br>
	Password: <input type=\'password\' name = \'passwordText\' /><br>
	New Name: <input type=\'text\' name = \'nameText\' /><br>
	<input type=\'submit\' name=\'editName\' value=\'edit\' />
	</form><br><br>';
    echo 'Edit Account Name:<br><form method=\'post\' action=\'' . htmlspecialchars($_SERVER['PHP_SELF']) . '\'><br>
	Password: <input type=\'password\' name = \'passwordText\' /><br>
Ejemplo n.º 2
0
<?php

include './config.php';
include './auth.php';
$id = $_GET['id'];
$editMail = editEmail($id);
?>


<!DOCTYPE html>
<html>
    <head>
        <title>Edit Category</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="style/style.css" rel="stylesheet" type="text/css" media="all" />
        <script type="text/javascript" src="js/jquery.min.js"></script>
        <style>.fancybox-inner{ width:288px !important; float:left !important; height:270px !important;}</style>
    </head>
    <body>

        <div id="popup_content"> <!--your content start-->
            <div id="msg" style="color:#007F2A; font-size: 13px;"></div>
            <div>&nbsp;</div>                        
            <form name="new_email" id="new_email" method="post" action="" onsubmit="return validate()" >
            <input type="hidden" name="edi_mail" value="1" />       
            <input type="hidden" name="edi_mail_id" id="edi_mail_id" value="<?php 
echo $editMail[0]['id'];
?>
" />     
                <ul>                    
                    <li><label>Name</label><input type="text" autocomplete="off" name="name" id="name" value="<?php