Visualizzazione dei risultati da 1 a 4 su 4
  1. #1
    Utente di HTML.it
    Registrato dal
    Feb 2005
    Messaggi
    2,245

    Password

    <?

    // set variables
    $errorpage = "http://www.your-domain.co.uk/error.htm";

    $combine = $username . $password;

    // In the form, if surfer puts in User1 for the username and One for the password:
    if(strstr($combine,"User1One")) {
    // they get directed to this page:
    include ("directory1/index.htm");

    // In the form, if surfer puts in User1 for the username and One for the password:
    } else if(strstr($combine,"User2Two")) {
    // they get directed to this page:
    include ("directory2/index.htm");

    // In the form, if surfer puts in User1 for the username and One for the password:
    } else if(strstr($combine,"User3Three")) {
    // they get directed to this page:
    include ("directory3/index.htm");

    // Wrong usernmae/password combo, they get directed to a custom error page:
    } else { Header("Location: $errorpage");
    exit; }
    ?>


    Qui la password di accesso dove la devo mettere?

  2. #2
    Utente di HTML.it L'avatar di chris
    Registrato dal
    Sep 1999
    Messaggi
    1,568
    In che senso? Dove devi mettere quella che arriva dall'utente o dove devi mettere quella da confrontare?

    Questo sistema comunque è orripilante...

  3. #3

    Re: Password

    cioè?
    se intendi 'dove devo metterla per fare il test...
    nn devi in quanto l' else finale è vero solo se tutte le condizioni precedenti sono false!
    www.bitmade.com Momentan ist richtig_Momentan ist gut_Nicht ist wirklich wichtig_Nach der Ebbe kommt die Flut_ _Am Strand des Lebens_ohne Grund,ohne Verstand_ist nichts vergebens_ich baue di traeume auf den Sand.

  4. #4
    ops...secondo....
    Originariamente inviato da chris
    In che senso? Dove devi mettere quella che arriva dall'utente o dove devi mettere quella da confrontare?

    Questo sistema comunque è orripilante...
    concordo
    www.bitmade.com Momentan ist richtig_Momentan ist gut_Nicht ist wirklich wichtig_Nach der Ebbe kommt die Flut_ _Am Strand des Lebens_ohne Grund,ohne Verstand_ist nichts vergebens_ich baue di traeume auf den Sand.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.