Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2004
    Location
    UK
    Posts
    534
    Tokens
    141

    Default radio panel problems

    hi, currently im using dentafrices radio panel.

    however wen i try 2 change my password etc, it works with no errors, but dunt add it 2 da database. Its the same with everyfink else.

    Anyone??
    Post Count: :eusa_danc 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 :eusa_danc

  2. #2
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    It may be because of different php versions, but i doubt it...

    It'll help me and others who don't use "Dentafrice's DJ Panel" if you could copy and paste the code for the update password pages. Then we can assist u

  3. #3
    Join Date
    Dec 2004
    Location
    UK
    Posts
    534
    Tokens
    141

    Default

    <? session_start();
    include 'dbConfig.php';
    $ip = $_SERVER['REMOTE_ADDR']; //get the ip of the current user
    if(!isset($_SESSION['session_username']) || empty($_SESSION['session_username']) || $ip!= $_SESSION['session_ip']) {
    //if the username is not set or the session username is empty or the ip does not match the session ip log them out
    session_unset(); //clears firefox
    session_destroy(); //clears IE
    echo "ERROR!!!";
    exit; } ?>

    <?
    if($action == "change") {

    if(!$password_cng) { echo "<b>You must enter a new password!</b>"; exit; }
    $password_cng = md5($password_cng);
    $user = $_SESSION['session_username'];
    $query = mysql_query("UPDATE `staff` SET password='$password_cng' WHERE username='$user'") or die(mysql_error());
    echo "<font face=verdana size=1>Password Changed";

    } else {
    echo "
    <form method=post action=\"$PHP_SELF?action=change\">
    <table border=\"0\">
    <tr><td><font size=\"1\" face=\"Verdana\">Password: <td><input name=\"password_cng\"></td></tr>
    <tr><td></td><td><input type=submit value=\"Change Password\" accesskey=\"s\"></td></tr>
    </table>
    </form>"; }
    ?><body bgcolor="#3366CC">
    when i try and change the pw, it just goes back to the main password change screen

    n yes the database is connected properly
    Post Count: :eusa_danc 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 :eusa_danc

  4. #4
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Errr. Have i read this wrong..

    Basically ur inserting $password_chng or w/e

    and well i can't see where its been defined...

    should be

    PHP Code:
    $password_chng $_POST[password_chng]; 
    Or w/e it is.... Tell me if im wrong but im sure im right lol

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •