Aanmeld.

Gestart doorErik34 reacties366 weergaven

35 berichten · pagina 2 van 3

Erik

Lid · Topicstarter

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je kan wel aanmelden, maar er staat niks in de DB. cry
0
Erik

Lid · Topicstarter

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Weet iemand het?
0
Erik

Lid · Topicstarter

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"top.php"[/COLOR][COLOR= #007700]);[/COLOR] ?>
                <h1>
                    Aanmelden
                </h1>
                [COLOR= #0000BB]<?php[/COLOR]
                [COLOR= #FF8000]//IP Ophalen[/COLOR]
                [COLOR= #0000BB]$ip[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]];[/COLOR]
                [COLOR= #FF8000]//Vergelijken met de database[/COLOR]
                [COLOR= #0000BB]$vergelijk[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM leden WHERE ip = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$ip[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                [COLOR= #FF8000]//Vergelijken met een IFje.[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$vergelijk[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
                {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"
                U heeft hier al een account.<br />
                <a href=inloggen.php>Inloggen</a>"[/COLOR][COLOR= #007700];
                }[/COLOR]
                [COLOR= #FF8000]//Het staat er niet, dus verder gaan.[/COLOR]
                [URL="http://www.php.net/else"]else[/URL]
                [COLOR= #007700]{[/COLOR]
                    [COLOR= #FF8000]//Is er op Aanmelden geklikt?[/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]verstuur[/COLOR][COLOR= #007700]]))
                    {[/COLOR]
                        [COLOR= #FF8000]//Variables klaar zetten.[/COLOR]
                        [COLOR= #0000BB]$gebruikersnaam[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]]);[/COLOR]
                        [COLOR= #0000BB]$wachtwoord1[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord1[/COLOR][COLOR= #007700]]);[/COLOR]
                        [COLOR= #0000BB]$wachtwoord2[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord2[/COLOR][COLOR= #007700]]);[/COLOR]
                        [COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]]);[/COLOR]
                        [COLOR= #0000BB]$emailweergeven[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]emailweergeven[/COLOR][COLOR= #007700]]);[/COLOR]
                        [COLOR= #FF8000]//Is er iets ingevuld?[/COLOR]
                        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$gebruikersnaam[/COLOR][COLOR= #007700]) ||[/COLOR] [URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$wachtwoord1[/COLOR][COLOR= #007700]) ||[/COLOR] [URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$wachtwoord2[/COLOR][COLOR= #007700]) ||[/COLOR] [URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]))
                        {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"
                U heeft iets niet ingevuld.<br />
                <a href=# onClick=history.back(-1)>Ga terug</a>"[/COLOR][COLOR= #007700];
                        }[/COLOR]
                        [COLOR= #FF8000]//Gebruikersnaam vergelijken met de database[/COLOR]
                        [COLOR= #0000BB]$vergelijk2[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM leden WHERE gebruikersnaam = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$gebruikersnaam[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                        [COLOR= #FF8000]//Controleren met IFje.[/COLOR]
                        [URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$vergelijk2[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
                        {[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"
                    De gebruikersnaam die U opgaf, is al in gebruik.<br />
                    <a href=# onClick=history.back(-1)>Ga terug</a>"[/COLOR][COLOR= #007700];
                        }[/COLOR]
                        [COLOR= #FF8000]//Controleren of het email geldig is.[/COLOR]
                        [URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/eregi"]eregi[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[A-Za-z0-9_-]+([.]{1}[A-Za-z0-9_-]+)*@[A-Za-z0-9-]+([.]{1}[A-Za-z0-9-]+)+"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$email[/COLOR][COLOR= #007700]))
                        {[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"
                    Uw email adres is niet geldig.<br />
                    <a href=# onClick=history.back(-1)>Ga terug</a>"[/COLOR][COLOR= #007700];
                        }[/COLOR]
                        [COLOR= #FF8000]//Alles is goed, dus toevoegen.[/COLOR]
                        [URL="http://www.php.net/else"]else[/URL]
                        [COLOR= #007700]{[/COLOR]
                            [COLOR= #0000BB]$toevoegen[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
                                                INSERT INTO
                                                    leden
                                                (
                                                    ip,
                                                    gebruikersnaam,
                                                    wachtwoord,
                                                    email,
                                                    emailweergeven,
                                                    coins,
                                                    rang
                                                )
                                                VALUES
                                                (
                                                    "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$ip[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",
                                                    "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$gebruikersnaam[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",
                                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/md5"]md5[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$wachtwoord1[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]",
                                                    "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",
                                                    "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$emailweergeven[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",
                                                    20
                                                    0
                                                
                                                    "[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                            [COLOR= #FF8000]//Bericht opstellen voor de mail[/COLOR]
                            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Hallo [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$gebruikersnaam[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000],/n[/COLOR][COLOR= #007700];[/COLOR]
                            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]U heeft zich aangemeld op Ville de Anubis./n[/COLOR][COLOR= #007700];[/COLOR]
                            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]Hierbij ontvangt U Uw gegevens./n[/COLOR][COLOR= #007700];[/COLOR]
                            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]Gebruikersnaam: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$gebruikersnaam[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]/n[/COLOR][COLOR= #007700];[/COLOR]
                            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]Wachtwoord: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$wachtwoord1[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]/n[/COLOR][COLOR= #007700];[/COLOR]
                            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]MVG,/n[/COLOR][COLOR= #007700];[/COLOR]
                            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]Ville de Anubis Crew[/COLOR][COLOR= #007700];[/COLOR]
                            [COLOR= #FF8000]//Mail versturen[/COLOR]
                            [URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]Registratie op Ville de Anubis[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]FROM: no-reply@villedeanubis.net.tc[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"
                U bent succesvol aangemeld.<br />
                Als het goed is heeft U een mail ontvangen van ons.<br />
                <a href=inloggen.php>Inloggen</a>"[/COLOR][COLOR= #007700];
                        }
                    }[/COLOR]
                    [COLOR= #FF8000]//Heeft nog niet op Aanmelden geklikt[/COLOR]
                    [URL="http://www.php.net/else"]else[/URL]
                    [COLOR= #007700]{[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"
                <form action= method=post>
                    <table>
                        <tr>
                            <td>
                                Gebruikersnaam
                            </td>
                            <td>
                                <input type=text name=gebruikersnaam class=gebruikersnaam />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Wachtwoord
                            </td>
                            <td>
                                <input type=password name=wachtwoord class=wachtwoord />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Wachtwoord <small>(Nogmaals)</small>
                            </td>
                            <td>
                                <input type=password name=wachtwoord class=wachtwoord />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Email adres <small>(Let op! Hier worden je gevens naar toe gestuurd!)</small>
                            </td>
                            <td>
                                <input type=text name=email class=email />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Email adres weergeven?
                            </td>
                            <td>
                                <input type=checkbox name=emailweergeven value=1 />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type=verstuur name=submit class=aanmelden value= />
                            </td>
                        </tr>
                    </table>
                </form>"[/COLOR][COLOR= #007700];
                    }
                }[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"bottom.php"[/COLOR][COLOR= #007700]);[/COLOR]
?>
0
Berichten
2.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
En wat is nu je probleem dan?
0
Erik

Lid · Topicstarter

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hij voegt niks toe in de DataBase.
0
Berichten
2.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Pff, sorry, maar het is echt een heel slecht script. Ik zou een andere zoeken als ik jou was
0
Remi

Lid

Berichten
1.270
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"top.php"[/COLOR][COLOR= #007700]);[/COLOR] ?>
                <h1>
                    Aanmelden
                </h1>
                [COLOR= #0000BB]<?php[/COLOR]
                [COLOR= #FF8000]//IP Ophalen[/COLOR]
                [COLOR= #0000BB]$ip[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]];[/COLOR]
                [COLOR= #FF8000]//Vergelijken met de database[/COLOR]
                [COLOR= #0000BB]$vergelijk[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM leden WHERE ip = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$ip[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                [COLOR= #FF8000]//Vergelijken met een IFje.[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$vergelijk[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
                {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"
                U heeft hier al een account.<br />
                <a href=inloggen.php>Inloggen</a>"[/COLOR][COLOR= #007700];
                }[/COLOR]
                [COLOR= #FF8000]//Het staat er niet, dus verder gaan.[/COLOR]
                [URL="http://www.php.net/else"]else[/URL]
                [COLOR= #007700]{[/COLOR]
                    [COLOR= #FF8000]//Is er op Aanmelden geklikt?[/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]verstuur[/COLOR][COLOR= #007700]]))
                    {[/COLOR]
                        [COLOR= #FF8000]//Variables klaar zetten.[/COLOR]
                        [COLOR= #0000BB]$gebruikersnaam[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]]);[/COLOR]
                        [COLOR= #0000BB]$wachtwoord1[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord1[/COLOR][COLOR= #007700]]);[/COLOR]
                        [COLOR= #0000BB]$wachtwoord2[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord2[/COLOR][COLOR= #007700]]);[/COLOR]
                        [COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]]);[/COLOR]
                        [COLOR= #0000BB]$emailweergeven[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]emailweergeven[/COLOR][COLOR= #007700]]);[/COLOR]
                        [COLOR= #FF8000]//Is er iets ingevuld?[/COLOR]
                        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$gebruikersnaam[/COLOR][COLOR= #007700]) ||[/COLOR] [URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$wachtwoord1[/COLOR][COLOR= #007700]) ||[/COLOR] [URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$wachtwoord2[/COLOR][COLOR= #007700]) ||[/COLOR] [URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]))
                        {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"
                U heeft iets niet ingevuld.<br />
                <a href=# onClick=history.back(-1)>Ga terug</a>"[/COLOR][COLOR= #007700];
                        }[/COLOR]
                        [COLOR= #FF8000]//Gebruikersnaam vergelijken met de database[/COLOR]
                        [COLOR= #0000BB]$vergelijk2[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM leden WHERE gebruikersnaam = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$gebruikersnaam[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                        [COLOR= #FF8000]//Controleren met IFje.[/COLOR]
                        [URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$vergelijk2[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
                        {[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"
                    De gebruikersnaam die U opgaf, is al in gebruik.<br />
                    <a href=# onClick=history.back(-1)>Ga terug</a>"[/COLOR][COLOR= #007700];
                        }[/COLOR]
                        [COLOR= #FF8000]//Controleren of het email geldig is.[/COLOR]
                        [URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/eregi"]eregi[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[A-Za-z0-9_-]+([.]{1}[A-Za-z0-9_-]+)*@[A-Za-z0-9-]+([.]{1}[A-Za-z0-9-]+)+"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$email[/COLOR][COLOR= #007700]))
                        {[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"
                    Uw email adres is niet geldig.<br />
                    <a href=# onClick=history.back(-1)>Ga terug</a>"[/COLOR][COLOR= #007700];
                        }[/COLOR]
                        [COLOR= #FF8000]//Alles is goed, dus toevoegen.[/COLOR]
                        [URL="http://www.php.net/else"]else[/URL]
                        [COLOR= #007700]{[/COLOR]
                            [COLOR= #0000BB]$toevoegen[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
                                                INSERT INTO
                                                    leden
                                                (
                                                    ip,
                                                    gebruikersnaam,
                                                    wachtwoord,
                                                    email,
                                                    emailweergeven,
                                                    coins,
                                                    rang
                                                
                                                VALUES
                                                (
                                                    $ip,
                                                    $gebruikersnaam,
                                                    md5($wachtwoord1),
                                                    $email,
                                                    $emailweergeven,
                                                    20
                                                    0
                                                
                                                    "[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                            [COLOR= #FF8000]//Bericht opstellen voor de mail[/COLOR]
                            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Hallo [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$gebruikersnaam[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000],/n[/COLOR][COLOR= #007700];[/COLOR]
                            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]U heeft zich aangemeld op Ville de Anubis./n[/COLOR][COLOR= #007700];[/COLOR]
                            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]Hierbij ontvangt U Uw gegevens./n[/COLOR][COLOR= #007700];[/COLOR]
                            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]Gebruikersnaam: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$gebruikersnaam[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]/n[/COLOR][COLOR= #007700];[/COLOR]
                            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]Wachtwoord: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$wachtwoord1[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]/n[/COLOR][COLOR= #007700];[/COLOR]
                            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]MVG,/n[/COLOR][COLOR= #007700];[/COLOR]
                            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]Ville de Anubis Crew[/COLOR][COLOR= #007700];[/COLOR]
                            [COLOR= #FF8000]//Mail versturen[/COLOR]
                            [URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]Registratie op Ville de Anubis[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]FROM: no-reply@villedeanubis.net.tc[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"
                U bent succesvol aangemeld.<br />
                Als het goed is heeft U een mail ontvangen van ons.<br />
                <a href=inloggen.php>Inloggen</a>"[/COLOR][COLOR= #007700];
                        }
                    }[/COLOR]
                    [COLOR= #FF8000]//Heeft nog niet op Aanmelden geklikt[/COLOR]
                    [URL="http://www.php.net/else"]else[/URL]
                    [COLOR= #007700]{[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"
                <form action= method=post>
                    <table>
                        <tr>
                            <td>
                                Gebruikersnaam
                            </td>
                            <td>
                                <input type=text name=gebruikersnaam class=gebruikersnaam />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Wachtwoord
                            </td>
                            <td>
                                <input type=password name=wachtwoord class=wachtwoord />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Wachtwoord <small>(Nogmaals)</small>
                            </td>
                            <td>
                                <input type=password name=wachtwoord class=wachtwoord />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Email adres <small>(Let op! Hier worden je gevens naar toe gestuurd!)</small>
                            </td>
                            <td>
                                <input type=text name=email class=email />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Email adres weergeven?
                            </td>
                            <td>
                                <input type=checkbox name=emailweergeven value=1 />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type=verstuur name=submit class=aanmelden value= />
                            </td>
                        </tr>
                    </table>
                </form>"[/COLOR][COLOR= #007700];
                    }
                }[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"bottom.php"[/COLOR][COLOR= #007700]);[/COLOR]
?>


Probeer die eens, zo werkt het in mijn script wel iig.
0
Erik

Lid · Topicstarter

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Parse error: syntax error, unexpected T_ELSEIF in /home/oelbert/domains/domeinloos.nl/public_html/VDA/aanmelden.php on line 39

cry
0
Remi

Lid

Berichten
1.270
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Omg emo
0
Berichten
2.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Op line 39, vervang die elsif met if
0
Remi

Lid

Berichten
1.270
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Include je de config wel eigenlijk? emo
0
Erik

Lid · Topicstarter

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hij zegt:
U heeft iets niet ingevuld.
Ga terug Uw email adres is niet geldig.
Ga terug yummie
0
Erik

Lid · Topicstarter

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Weet iemand het? cryPS. Sorry voor de dubbelposting.
0
Berichten
2.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
je moet gewoon een nieuwe inlogssysteem zoeken, deze is kut
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