Aanmeld.

Gestart doorErik34 reacties366 weergaven

35 berichten · pagina 1 van 3

Erik

Lid · Topicstarter

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hee,
Ik heb een probleem met me aanmeld systeem cry.
De error is:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ) at line 18


En me aanmelden.php is:

[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]submit[/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/if"]if[/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/if"]if[/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
                                                )
                                                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]",
                                                )
                                                    "[/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="submit" 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]
?>


dankjewel alvast!
0
Berichten
2.396
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
probeer eens echo openen en afsluiten met "
0
Berichten
3.283
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Probeer dit eens:

[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]submit[/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/if"]if[/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>;
                        }
                        //Controleren of het email geldig is.
                        if(eregi("[/COLOR][COLOR= #007700][[/COLOR]A[COLOR= #007700]-[/COLOR]Za[COLOR= #007700]-[/COLOR]z0[COLOR= #007700]-[/COLOR][COLOR= #0000BB]9[/COLOR]_[COLOR= #007700]-]+([[/COLOR][COLOR= #007700].]{[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]}[[/COLOR]A[COLOR= #007700]-[/COLOR]Za[COLOR= #007700]-[/COLOR]z0[COLOR= #007700]-[/COLOR][COLOR= #0000BB]9[/COLOR]_[COLOR= #007700]-]+)*@[[/COLOR]A[COLOR= #007700]-[/COLOR]Za[COLOR= #007700]-[/COLOR]z0[COLOR= #007700]-[/COLOR][COLOR= #0000BB]9[/COLOR][COLOR= #007700]-]+([[/COLOR][COLOR= #007700].]{[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]}[[/COLOR]A[COLOR= #007700]-[/COLOR]Za[COLOR= #007700]-[/COLOR]z0[COLOR= #007700]-[/COLOR][COLOR= #0000BB]9[/COLOR][COLOR= #007700]-]+)+[/COLOR][COLOR= #DD0000]", $email))
                        {
                    echo "[/COLOR]
                    Uw email adres is niet geldig[COLOR= #007700].<[/COLOR]br /[COLOR= #007700]>
                    <[/COLOR]a href[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"#"[/COLOR] onClick[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"history.back(-1)"[/COLOR][COLOR= #007700]>[/COLOR]Ga terug[COLOR= #007700]<[/COLOR]/a[COLOR= #007700]>[/COLOR][COLOR= #DD0000];
                        }
                        //Alles is goed, dus toevoegen.
                        else
                        {
                            $toevoegen = mysql_query("
                                                INSERT INTO
                                                    leden
                                                (
                                                    ip,
                                                    gebruikersnaam,
                                                    wachtwoord,
                                                    email,
                                                    emailweergeven,
                                                    coins
                                                
                                                VALUES
                                                (
                                                    ".$ip.",
                                                    ".$gebruikersnaam.",
                                                    ".md5($wachtwoord1).",
                                                    ".$email.",
                                                    ".$emailweergeven.",
                                                
                                                    ") or die(mysql_error());
                            //Bericht opstellen voor de mail
                            $bericht = [/COLOR]Hallo [COLOR= #DD0000].$gebruikersnaam.[/COLOR][COLOR= #007700],[/COLOR]/n[COLOR= #DD0000];
                            $bericht .= [/COLOR]U heeft zich aangemeld op Ville de Anubis[COLOR= #007700].[/COLOR]/n[COLOR= #DD0000];
                            $bericht .= [/COLOR]Hierbij ontvangt U Uw gegevens[COLOR= #007700].[/COLOR]/n[COLOR= #DD0000];
                            $bericht .= [/COLOR]Gebruikersnaam[COLOR= #007700]:[/COLOR] [COLOR= #DD0000].$gebruikersnaam.[/COLOR]/n[COLOR= #DD0000];
                            $bericht .= [/COLOR]Wachtwoord[COLOR= #007700]:[/COLOR] [COLOR= #DD0000].$wachtwoord1.[/COLOR]/n[COLOR= #DD0000];
                            $bericht .= [/COLOR]MVG[COLOR= #007700],[/COLOR]/n[COLOR= #DD0000];
                            $bericht .= [/COLOR]Ville de Anubis Crew[COLOR= #DD0000];
                            //Mail versturen
                            mail($email, [/COLOR]Registratie op Ville de Anubis[COLOR= #DD0000], $bericht, [/COLOR]FROM[COLOR= #007700]:[/COLOR] no[COLOR= #007700]-[/COLOR]reply[COLOR= #007700]@[/COLOR]villedeanubis[COLOR= #007700].[/COLOR]net[COLOR= #007700].[/COLOR]tc[COLOR= #DD0000]);
                echo "
                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="[/COLOR]post[COLOR= #DD0000]">
                    <table>
                        <tr>
                            <td>
                                Gebruikersnaam
                            </td>
                            <td>
                                <input type="[/COLOR]text[COLOR= #DD0000]" name="[/COLOR]gebruikersnaam[COLOR= #DD0000]" class="[/COLOR]gebruikersnaam[COLOR= #DD0000]" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Wachtwoord
                            </td>
                            <td>
                                <input type="[/COLOR]password[COLOR= #DD0000]" name="[/COLOR]wachtwoord[COLOR= #DD0000]" class="[/COLOR]wachtwoord[COLOR= #DD0000]" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Wachtwoord <small>(Nogmaals)</small>
                            </td>
                            <td>
                                <input type="[/COLOR]password[COLOR= #DD0000]" name="[/COLOR]wachtwoord[COLOR= #DD0000]" class="[/COLOR]wachtwoord[COLOR= #DD0000]" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Email adres <small>(Let op! Hier worden je gevens naar toe gestuurd!)</small>
                            </td>
                            <td>
                                <input type="[/COLOR]text[COLOR= #DD0000]" name="[/COLOR]email[COLOR= #DD0000]" class="[/COLOR]email[COLOR= #DD0000]" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Email adres weergeven?
                            </td>
                            <td>
                                <input type="[/COLOR]checkbox[COLOR= #DD0000]" name="[/COLOR]emailweergeven[COLOR= #DD0000]" value="[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #DD0000]" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="[/COLOR]submit[COLOR= #DD0000]" name="[/COLOR]submit[COLOR= #DD0000]" class="[/COLOR]aanmelden[COLOR= #DD0000]" value="" />
                            </td>
                        </tr>
                    </table>
                </form>;
                    }
                }
include("[/COLOR]bottom[COLOR= #007700].[/COLOR]php"[COLOR= #007700]);[/COLOR]
?>
0
Berichten
3.283
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Mitchels schreef:
probeer eens echo openen en afsluiten met "
Idd dat was het probleem ^^ heb ik goede code staan.
Maar jij was eerder toen ik code aan het verbeteren was.
0
Erik

Lid · Topicstarter

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nog niet. Hij voegt niks toe...
0
Berichten
2.396
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Link waar hij online staat?
0
Erik

Lid · Topicstarter

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[URL="http://87.238.173.142/
0
Berichten
5.209
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nu de normaale link?
0
Erik

Lid · Topicstarter

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Klikje
0
Berichten
2.396
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
http://87.238.173.142/~ oelbert/VDA/aanmelden.php
Zonder spatie tussen ~ & o
0
Remi

Lid

Berichten
1.270
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Doe ik het wel weer:
http://87.238.173.142/~|oelbert/VDA/aanmelden.php


En dan die | weghalen.
Afbeelding
0
Berichten
2.396
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lukt jou ook niet xd
0
Berichten
3.283
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik zou gewoon een ander ledensysteem gebruiken.
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