Fouten in mijn script. php

Gestart doorFreestyle2 reacties5 weergaven

3 berichten · pagina 1 van 1

Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb fouten in mijn script zitten. En ik snap de errors niet. En het lukt me ook niet om het op telossen

Pagina: http://vanmarijn.nl/aanmelden

Errors:
Spoiler tonen
Notice: Undefined index: gebruiker in /home/marijn/domains/vanmarijn.nl/public_html/aanmelden.php on line 39

Notice: Undefined index: gebruiker in /home/marijn/domains/vanmarijn.nl/public_html/aanmelden.php on line 41

Notice: Undefined index: gebruiker in /home/marijn/domains/vanmarijn.nl/public_html/aanmelden.php on line 43

Notice: Undefined index: wachtwoord in /home/marijn/domains/vanmarijn.nl/public_html/aanmelden.php on line 48

Notice: Undefined index: wachtwoord in /home/marijn/domains/vanmarijn.nl/public_html/aanmelden.php on line 50

Notice: Undefined index: email in /home/marijn/domains/vanmarijn.nl/public_html/aanmelden.php on line 55
Script:
Spoiler tonen
[COLOR= #0000BB]<?php[/COLOR] 
[URL="http://www.php.net/error_reporting"]error_reporting[/URL][COLOR= #007700]([/COLOR]E_ALL[COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/ini_set"]ini_set[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]display_errors[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]1[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]functies.php[/COLOR][COLOR= #007700]);[/COLOR]
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
[COLOR= #0000BB]<?php[/COLOR] 
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]inc/menu.php[/COLOR][COLOR= #007700]);[/COLOR]

    
    [COLOR= #0000BB]$datum[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$escape[/COLOR][COLOR= #007700]([/COLOR][URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"d-l-Y H:i"[/COLOR][COLOR= #007700]));[/COLOR]
    [COLOR= #0000BB]$ip[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$escape[/COLOR][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]]);[/COLOR]
    [COLOR= #0000BB]$rang[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$escape[/COLOR][COLOR= #007700]([/COLOR][COLOR= #DD0000]1[/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]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]login[/COLOR][COLOR= #007700]])) {[/COLOR]
?>
    <h1 class="title">U heeft al een account</h1>
    <p class="byline"><small>U heeft al een account op VanMarijn</small></p>
    <p>U mag maar 1 account hebben. U hoeft hier dus ook niet te zijn!</p>
[COLOR= #0000BB]<?php[/COLOR]    
[COLOR= #007700]}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [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]meldaan[/COLOR][COLOR= #007700]])) {[/COLOR]
        
        [COLOR= #0000BB]$error[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]();[/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]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruiker[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft geen gebruikersnaam ingevult.[/COLOR][COLOR= #007700]; }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruiker[/COLOR][COLOR= #007700]] <[/COLOR] [COLOR= #0000BB]3[/COLOR][COLOR= #007700])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]De gebruikersnaam mag niet kleiner zijn dan 3letters![/COLOR][COLOR= #007700]; }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruiker[/COLOR][COLOR= #007700]] >[/COLOR] [COLOR= #0000BB]25[/COLOR][COLOR= #007700])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]De gebruikersnaam mag niet langer zijn dan 25letters![/COLOR][COLOR= #007700]; }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]_^[0-9a-z]+$_i[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruiker[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]De gebruikersnaam mag alleen letters en cijfers bevatten.[/COLOR][COLOR= #007700]; }[/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]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft geen wachtwoord ingevult![/COLOR][COLOR= #007700]; }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]] <[/COLOR] [COLOR= #0000BB]8[/COLOR][COLOR= #007700])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]Uw wachtwoord moet langer zijn dan 8tekens.[/COLOR][COLOR= #007700]; }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]] >[/COLOR] [COLOR= #0000BB]50[/COLOR][COLOR= #007700])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]Uw wachtwoord mag niet langer zijn dan 50tekens.[/COLOR][COLOR= #007700]; }[/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]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft geen email adres ingevult.[/COLOR][COLOR= #007700]; }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR]check_email[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft geen geldig email adres ingevult![/COLOR][COLOR= #007700]; }[/COLOR]
        
        [URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$error[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$id[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$val[/COLOR][COLOR= #007700]) {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<font color="#FF0000">[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]*[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$val[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]<br />[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"
"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Laat de error zien gevolgd door een enter en een nieuwe lijn[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</font>[/COLOR][COLOR= #007700];
        }    
        
    }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
        [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO users (gebruiker, wachtwoord, email, datum, ip, rang, geb, stad)
                    Values("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruiker[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$datum[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$ip[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$rang[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]geb[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]stad[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);[/COLOR]
?>
        <meta http-equiv="refresh" content="2; URL=login" />
        <h1 class="title">Succes vol aangemeld</h1>
        <p class="byline"><small>U bent succes vol aangemeld op VanMarijn</small></p>
        <p>U bent succes vol aangemeld op VanMarijn.<br />
        U word binnen 5 seconden door gestuurd naar de inlog pagina. Is dit niet het geval? <br />
        Klik dan <a href="login">hier</a>.</p>
[COLOR= #0000BB]<?php[/COLOR]
        
    [COLOR= #007700]}[/COLOR]
?>

        <h1 class="title">Aanmelden</h1>
        <p class="byline"><small>Meld je nu gratis aan op vanmarijn!</small></p>
        <p>
        <form action="aanmelden.php" metho="POST">
        <table width="400px" style="text-align:left;">
            <tr>
                <th>*Gebruikersnaam:</th><td><input type="text" name="gebruiker" /></td><td></td>
               </tr>
            <tr>
                <th>*Wachtwoord:</th><td><input type="password" name="Wachtwoord" /></td><td></td>
            </tr>
            <tr>
                <th>*Email-adres:</th><td><input type="text" name="email" /></td><td></td>
            </tr>
            <tr>
                <th>Geboorten datum:</th><td><input type="text" name="geb" /></td><td>DD-MM-YYYY</td>
            </tr>
            <tr>
                <th>Stad:</th><td><input type="text" name="stad" /></td>
            </tr>
            <tr>
                <th>*</th><td><input type="submit" name="meldaan" value="Aanmelden" /></td><td><input type="reset" value="Reset" /></td>
            </tr>
        </table>
        </form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]inc/sidebar_l.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]inc/sidebar_r.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]inc/footer.php[/COLOR][COLOR= #007700]);[/COLOR]
?>
Alvast bedankt!
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Marjolein schreef:
Spoiler tonen
[COLOR= #0000BB]<?php[/COLOR] 
[URL="http://www.php.net/error_reporting"]error_reporting[/URL][COLOR= #007700]([/COLOR]E_ALL [COLOR= #007700]^[/COLOR] E_NOTICE[COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]functies.php[/COLOR][COLOR= #007700]);[/COLOR]
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
[COLOR= #0000BB]<?php[/COLOR] 
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]inc/menu.php[/COLOR][COLOR= #007700]);[/COLOR]

    
    [COLOR= #0000BB]$datum[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$escape[/COLOR][COLOR= #007700]([/COLOR][URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"d-l-Y H:i"[/COLOR][COLOR= #007700]));[/COLOR]
    [COLOR= #0000BB]$ip[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$escape[/COLOR][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]]);[/COLOR]
    [COLOR= #0000BB]$rang[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$escape[/COLOR][COLOR= #007700]([/COLOR][COLOR= #DD0000]1[/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]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]login[/COLOR][COLOR= #007700]])) {[/COLOR]
?>
    <h1 class="title">U heeft al een account</h1>
    <p class="byline"><small>U heeft al een account op VanMarijn</small></p>
    <p>U mag maar 1 account hebben. U hoeft hier dus ook niet te zijn!</p>
[COLOR= #0000BB]<?php[/COLOR]    
[COLOR= #007700]}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [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]meldaan[/COLOR][COLOR= #007700]])) {[/COLOR]
        
        [COLOR= #0000BB]$error[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]();[/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]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruiker[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft geen gebruikersnaam ingevult.[/COLOR][COLOR= #007700]; }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruiker[/COLOR][COLOR= #007700]] <[/COLOR] [COLOR= #0000BB]3[/COLOR][COLOR= #007700])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]De gebruikersnaam mag niet kleiner zijn dan 3letters![/COLOR][COLOR= #007700]; }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruiker[/COLOR][COLOR= #007700]] >[/COLOR] [COLOR= #0000BB]25[/COLOR][COLOR= #007700])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]De gebruikersnaam mag niet langer zijn dan 25letters![/COLOR][COLOR= #007700]; }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]_^[0-9a-z]+$_i[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruiker[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]De gebruikersnaam mag alleen letters en cijfers bevatten.[/COLOR][COLOR= #007700]; }[/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]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft geen wachtwoord ingevult![/COLOR][COLOR= #007700]; }[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]] <[/COLOR] [COLOR= #0000BB]8[/COLOR][COLOR= #007700])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]Uw wachtwoord moet langer zijn dan 8tekens.[/COLOR][COLOR= #007700]; }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]] >[/COLOR] [COLOR= #0000BB]50[/COLOR][COLOR= #007700])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]Uw wachtwoord mag niet langer zijn dan 50tekens.[/COLOR][COLOR= #007700]; }[/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]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft geen email adres ingevult.[/COLOR][COLOR= #007700]; }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR]check_email[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$error[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]U heeft geen geldig email adres ingevult![/COLOR][COLOR= #007700]; }[/COLOR]
        
        [URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$error[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$id[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$val[/COLOR][COLOR= #007700]) {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<font color="#FF0000">[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]*[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$val[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]<br />[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Laat de error zien gevolgd door een enter en een nieuwe lijn[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</font>[/COLOR][COLOR= #007700];    }    
        
    }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
        [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO users (gebruiker, wachtwoord, email, datum, ip, rang, geb, stad)
                    Values("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$escape[/COLOR][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruiker[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$escape[/COLOR][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$escape[/COLOR][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$datum[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$ip[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$rang[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$escape[/COLOR][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]geb[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$escape[/COLOR][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]stad[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);[/COLOR]
?>
        <meta http-equiv="refresh" content="2; URL=login" />
        <h1 class="title">Succes vol aangemeld</h1>
        <p class="byline"><small>U bent succes vol aangemeld op VanMarijn</small></p>
        <p>U bent succes vol aangemeld op VanMarijn.<br />
        U word binnen 5 seconden door gestuurd naar de inlog pagina. Is dit niet het geval? <br />
        Klik dan <a href="login">hier</a>.</p>
[COLOR= #0000BB]<?php[/COLOR]        
    [COLOR= #007700]}[/COLOR]
?>

        <h1 class="title">Aanmelden</h1>
        <p class="byline"><small>Meld je nu gratis aan op vanmarijn!</small></p>
        <p>
        <form action="aanmelden.php" method="POST">
        <table width="400px" style="text-align:left;">
            <tr>
                <th>*Gebruikersnaam:</th><td><input type="text" name="gebruiker" /></td><td></td>
               </tr>
            <tr>
                <th>*Wachtwoord:</th><td><input type="password" name="Wachtwoord" /></td><td></td>
            </tr>
            <tr>
                <th>*Email-adres:</th><td><input type="text" name="email" /></td><td></td>
            </tr>
            <tr>
                <th>Geboorten datum:</th><td><input type="text" name="geb" /></td><td>DD-MM-YYYY</td>
            </tr>
            <tr>
                <th>Stad:</th><td><input type="text" name="stad" /></td>
            </tr>
            <tr>
                <th>*</th><td><input type="submit" name="meldaan" value="Aanmelden" /></td><td><input type="reset" value="Reset" /></td>
            </tr>
        </table>
        </form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]inc/sidebar_l.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]inc/sidebar_r.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]inc/footer.php[/COLOR][COLOR= #007700]);[/COLOR]
?>
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