wachtwoord op website.

Gestart doorSmiegles8 reacties67 weergaven

9 berichten · pagina 1 van 1

Smiegles

Lid · Topicstarter

Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #DD0000]inc/config.php[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]])){[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_post[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]] ==[/COLOR][COLOR= #DD0000]$adminname[/COLOR] [COLOR= #007700]&[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]] ==[/COLOR][COLOR= #DD0000]$adminpass[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<b>HOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO[/COLOR][COLOR= #007700]; } }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]jammmer[/COLOR][COLOR= #007700];
}[/COLOR]
?>
<div id="center">
  <form action="#" method="post">
    <table>
      <tr>
        <td style="width: 100px;">Gebruikersnaam:</td>
        <td style="width: 500px;"><input type="text" name="username" class="input" /></td>
      </tr>
      <tr>
        <td style="width: 100px;">Wachtwoord:</td>
        <td style="width: 500px;"><input type="password" name="password"  class="input"/></td>
      </tr>
      <tr>
        <td style="width: 100px;"></td>
        <td style="width: 300px;"><input type="submit" name="submit" value="Inloggen" class="input"/></td>
      </tr>
    </table>
    </form>
</div>


Weet iemand waarom dit niet werk?
0
Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

Beetje rare script?
Niet eens iets een input confused?
0
Smiegles

Lid · Topicstarter

Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Die heb ik ook effe erbij zetten

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #DD0000]inc/config.php[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]])){[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_post[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]] ==[/COLOR][COLOR= #DD0000]$adminname[/COLOR] [COLOR= #007700]&[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]] ==[/COLOR][COLOR= #DD0000]$adminpass[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<b>HOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO[/COLOR][COLOR= #007700]; } }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]jammmer[/COLOR][COLOR= #007700];
}[/COLOR]
?>
<div id="center">
  <form action="#" method="post">
    <table>
      <tr>
        <td style="width: 100px;">Gebruikersnaam:</td>
        <td style="width: 500px;"><input type="text" name="username" class="input" /></td>
      </tr>
      <tr>
        <td style="width: 100px;">Wachtwoord:</td>
        <td style="width: 500px;"><input type="password" name="password"  class="input"/></td>
      </tr>
      <tr>
        <td style="width: 100px;"></td>
        <td style="width: 300px;"><input type="submit" name="submit" value="Inloggen" class="input"/></td>
      </tr>
    </table>
    </form>
</div>
0
Berichten
21
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #DD0000]inc/config.php[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$adminname[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Admin"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$adminpass[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Wachtwoord"[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]$adminname[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]$adminpass[/COLOR][COLOR= #007700])
    {[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<b>HOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO[/COLOR][COLOR= #007700];
    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
    [COLOR= #007700]{[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]jammer[/COLOR][COLOR= #007700];
    }
}[/COLOR]
?>
<div id="center">
  <form action="#" method="post">
    <table>
      <tr>
        <td style="width: 100px;">Gebruikersnaam:</td>
        <td style="width: 500px;"><input type="text" name="username" class="input" /></td>
      </tr>
      <tr>
        <td style="width: 100px;">Wachtwoord:</td>
        <td style="width: 500px;"><input type="password" name="password"  class="input"/></td>
      </tr>
      <tr>
        <td style="width: 100px;"></td>
        <td style="width: 300px;"><input type="submit" name="submit" value="Inloggen" class="input"/></td>
      </tr>
    </table>
    </form>
</div>
0
Smiegles

Lid · Topicstarter

Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
HE dankjewel! het werkt.
Kan je ook iets aanmaken dat je ingelogd naar een andere pagina gaat zoals een sessie?
0
Berichten
9.953
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja, dan maak je een sessie aan, als het correct is.
Maar dat kan je hopelijk zelf wel.
0
Smiegles

Lid · Topicstarter

Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
nou ik kan het wel maar ik weet niet hoe dat hier moet want je haalt niks uit de database en zo ben ik dat gewend
0
Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Om een sessie te maken heb je geen database nodig?
0
Smiegles

Lid · Topicstarter

Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
hoe doe je dat dan>
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren