Menu

Problems with targets...

Help 2.02
2003-10-03
2003-10-07
  • David Rodríguez García

    Hi Andreas... I have a problem... Its dificult to explain but im going to try ;)

    Using the form for register users access, when the password is ok I do not want the left column to appear in the next page. This is because Im using frames and I get two left columns with all the items... When the password is wrong it works ok...

    Where do I have to change the link for the success entry page to get only the user info without the left column?

    Im not sure I have explain it very well... sorry about my horrible english...

    Thanks...

     
    • Andreas Kansok

      Andreas Kansok - 2003-10-04

      There are two ways and two locations for your project. I'm not sure what you mean, so I try to explain both:
      1st situation: Only right side (frame 'main') is changed, if something done in registration form (reguser.php). This is not a good idea, because customer name in navigation isn't updated, but it is your shop ;-)
      Change in reguser.php form's target to _self and action to reguser.php instead of login.php and _parent.
      Copy part elseif($caller=="reguser") { ... } into reguser.php before line $caller="reguser" (3);.
      2nd situation: reguser keeps target=_parent and action=login.php. Content of left frame is defined in $url_li, right frame in $url between line 36 and 60 in login.php (part you copy for 1st situation).

      Helpfull?

      Greetings,
      Andreas.

       
      • Andreas Kansok

        Andreas Kansok - 2003-10-04

        1st sutuation is not completed yet.
        You have to handle good or bad login somehow ... Put the copied part into line 2 and change it to something like:
        if($caller=="reguser")
        { include(".config_db.inc.php");
          include("./db_func.inc.php");
          $md_pw = ...
          # copied part until
          $upd_res = db_query(...);
          header("Location:$url");
          exit;
        }
        ... reguser.php as it is.

         
    • David Rodríguez García

      Thanks Andreas... it sounds very difficult for my habilities ;)... anyway, I have found another solution for the problem, much more easier.

      Just another question... I think the way of getting lost passwords is a little complicated. The user need to remember too many things... I think there are too many fields in the form of fpass.php. Is there anyway of make it easier? Maybe just asking him for the user id and e-mail or something like that...?

      Thanks again ;)

       
      • Andreas Kansok

        Andreas Kansok - 2003-10-07

        fpass.php: Of course you can request for other fileds in fpass.php and check this data in table user. Very simple ...
        Remove or rename input fields and change the SQL-query.
        Note1: Customer don't know its user.ID only the number (user.kdnr)
        Note2: Make sure nobody can change data of 'user public'

        I'm not a friend of 'Enter email, get password to this email', that's why a choose antther way ;-) And I think, firstname, surname and ZIP-Code can not be so complicated to remember ... customerNo. may be ...

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.