Inloggen in de header

Gestart doorMarvinn37 reacties65 weergaven

38 berichten · pagina 1 van 3

Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Heey!

Ik heb een website: www.habbotjes.be

Maar ik wil graag dit in de header hebben:http://www.habbotjes.be/index.php?p=login

Dus ik wil dat ik het vakje inloggen in de header kan krijgen.

Weet iemand een idee hoe ik het inlog systeem in de header krijg?

Bedankt alvast!
0
Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
kan je het script van die login pagina geven?
0
Berichten
1.579
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dan moet je je header coderen, als dit al gedaan is kan je makkelijk zo vak er in maken.
0
Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
de header is al gecodeert
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/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]inloggen[/COLOR][COLOR= #007700]]) && ![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]]) && ![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]])) {[/COLOR]

    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$doe[/COLOR][COLOR= #007700]->[/COLOR]inloggen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]remember[/COLOR][COLOR= #007700]]);
    
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
    ?>
    <form action="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]];[/COLOR] ?>?p=login" method="post">
        <table width="450">
            [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$instellingen[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]habbo[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"ja"[/COLOR][COLOR= #007700]) {[/COLOR] ?>
            <tr>
                <td rowspan="4"></td>
            </tr>
            [COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]}[/COLOR] ?>
<style type="text/css"> 
#login_user {
background-color : #f5f1f1;
background-repeat : no-repeat;
padding-left : 25px;
background-position : 5px center;

background-image : url(http://www.habbotjes.be/img/naamlogin.gif);

}
#login_pass {

background-image : url(http://www.habbotjes.be/img/wachtwoordlogin.gif);
background-color : #f5f1f1;
background-repeat : no-repeat;
padding-left : 25px;
background-position : 5px center;

}
</style> 
            <tr>
                <td>Gebruikersnaam:</td>
                <td><input type="text" id="login_user" name="gebruikersnaam" maxlength="255" /></td>
            </tr>
            <tr>
                <td>Wachtwoord: <Br><b>(Niet je <br>habbo wachtwoord!)</b></td>
                <td><input type="password" id="login_pass" name="wachtwoord" maxlength="255" /></td>
            </tr>
            <tr>
<td>Onthoud mij</td>
                <td><input type="checkbox" name="remember" value="ja" /></td>
            </tr>
            <tr>
                <th colspan="2"><input type="submit" name="inloggen" value="Inloggen!"></th>
            </tr>
        </table>
    </form>
    [COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>


Maar je kan het toch ook met css doen? *Geen idee hoe*
0
Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/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]inloggen[/COLOR][COLOR= #007700]]) && ![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]]) && ![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]])) {[/COLOR]

    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$doe[/COLOR][COLOR= #007700]->[/COLOR]inloggen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]remember[/COLOR][COLOR= #007700]]);
    
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
    ?>
    <form action="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]];[/COLOR] ?>?p=login" method="post">
        <table width="450">
            [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$instellingen[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]habbo[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"ja"[/COLOR][COLOR= #007700]) {[/COLOR] ?>
            <tr>
                <td rowspan="4"></td>
            </tr>
            [COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]}[/COLOR] ?>

<tr>
                <td>Gebruikersnaam:</td>
                <td><input type="text" id="login_user" name="gebruikersnaam" maxlength="255" /></td>
            </tr>
            <tr>
                <td>Wachtwoord: <Br><b>(Niet je <br>habbo wachtwoord!)</b></td>
                <td><input type="password" id="login_pass" name="wachtwoord" maxlength="255" /></td>
            </tr>
            <tr>
<td>Onthoud mij</td>
                <td><input type="checkbox" name="remember" value="ja" /></td>
            </tr>
            <tr>
                <th colspan="2"><input type="submit" name="inloggen" value="Inloggen!"></th>
            </tr>
        </table>
    </form>
    [COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>


dat moet je dan in de header zetten (als ik me neit vergis)

edit//
als je de zelfde style als op de login pagina wilt. dan moet je de hele code van die pagina er neer zetten.
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Freestyle schreef:
[COLOR= #0000BB]<?php[/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]inloggen[/COLOR][COLOR= #007700]]) && ![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]]) && ![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]])) {[/COLOR]

    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$doe[/COLOR][COLOR= #007700]->[/COLOR]inloggen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]remember[/COLOR][COLOR= #007700]]);
    
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
    ?>
    <form action="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]];[/COLOR] ?>?p=login" method="post">
        <table width="450">
            [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$instellingen[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]habbo[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"ja"[/COLOR][COLOR= #007700]) {[/COLOR] ?>
            <tr>
                <td rowspan="4"></td>
            </tr>
            [COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]}[/COLOR] ?>

<tr>
                <td>Gebruikersnaam:</td>
                <td><input type="text" id="login_user" name="gebruikersnaam" maxlength="255" /></td>
            </tr>
            <tr>
                <td>Wachtwoord: <Br><b>(Niet je <br>habbo wachtwoord!)</b></td>
                <td><input type="password" id="login_pass" name="wachtwoord" maxlength="255" /></td>
            </tr>
            <tr>
<td>Onthoud mij</td>
                <td><input type="checkbox" name="remember" value="ja" /></td>
            </tr>
            <tr>
                <th colspan="2"><input type="submit" name="inloggen" value="Inloggen!"></th>
            </tr>
        </table>
    </form>
    [COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
dat moet je dan in de header zetten (als ik me neit vergis)

edit//
als je de zelfde style als op de login pagina wilt. dan moet je de hele code van die pagina er neer zetten.

Dat kan wel via include maar dan staat het in de hoek van de header? Hoe kan ik dan die include van plaats veranderen?

//Edit als je dan inlogt blijf dat inlog ding er staan? *Dat moet dan meteen weg*
0
Berichten
1.674
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Via css kan je dat doen. Of gewoon via html, left/center/right.
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Rickdb schreef:
Via css kan je dat doen. Of gewoon via html, left/center/right.
Tnx smile even proberen
0
Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik weet niet hoe die code dan weg gaatsadleymaar je kan in html zetten:

<alg id="right">zoiets volgens mij is het verkeerd:$ </alg>
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het werkt smile
Dankjewel allemaal yummie
Ik moet alleen nog zo vakje hebben. Dus ik ga even de pixelaar mailen smile
0
Berichten
14.363
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kan je niet gewoon

float: right;


doen?
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nu heb ik dit:

Gebruikers naam: [INPUT]

Wachtwoord: [INPUT]

Weet iemand hoe ik dit krijg:

Gebruikers naam:
[INPUT]

Wachtwoord:
[INPUT]

De code van inlog.php is:

[COLOR= #0000BB]<?php[/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]inloggen[/COLOR][COLOR= #007700]]) && ![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]]) && ![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]])) {[/COLOR]

    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$doe[/COLOR][COLOR= #007700]->[/COLOR]inloggen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]remember[/COLOR][COLOR= #007700]]);
    
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
    ?>
    <form action="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]];[/COLOR] ?>?p=login" method="post">
        <table width="290">
            [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$instellingen[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]habbo[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"ja"[/COLOR][COLOR= #007700]) {[/COLOR] ?>
            <tr>
                <td rowspan="4"></td>
            </tr>
            [COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]}[/COLOR] ?>

<tr>
                <td>Gebruikersnaam:</td>
                <td><input type="text" id="login_user" name="gebruikersnaam" maxlength="255" /></td>
            </tr>
            <tr>
                <td>Wachtwoord: <Br><b>(Niet je <br>habbo wachtwoord!)</b></td>
                <td><input type="password" id="login_pass" name="wachtwoord" maxlength="255" /></td>
            </tr>
            <tr>
<td>Onthoud mij</td>
                <td><input type="checkbox" name="remember" value="ja" /></td>
            </tr>
            <tr>
                <th colspan="2"><input type="submit" name="inloggen" value="Inloggen!"></th>
            </tr>
        </table>
    </form>
    [COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
0
Berichten
14.363
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja, zet er een
neer.
Dat is een enter emo
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja waar?

Want ik krijg dit:

ENTER

Gebruikers naam: [INPUT]

Wachtwoord: [INPUT]
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