Error netjes ordenen?

Gestart doorFreestyle13 reacties7 weergaven

14 berichten · pagina 1 van 1

Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb een scriptje voor registreer pagina. Maar als ik meer dan 1error geeft. Dan geeft hij alleen de eerste error aan. Hoe zorg ik dat hij alle errors weer geeft. Netjes onder elkaar.

Het script:

[COLOR= #0000BB]<?php[/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]$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/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$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/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$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/elseif"]elseif[/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]$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/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$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/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$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/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$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/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$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/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR]check_email[COLOR= #007700]([/COLOR][COLOR= #0000BB]$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] 
?>


Alvast bedankt!!
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Array...
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dus dan moet ik voor aan:

$error = array(); doen toch?
En komt het dan allemaal onder elkaar of naast elkaar?
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je moet dan wel zorgen dat je van de elseif gewoon if maakt waar nodig
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
En dan geen $error = maar $error[] = ERROR;

En dan een foreach
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Luukvdo schreef:
Je moet dan wel zorgen dat je van de elseif gewoon if maakt waar nodig

Dus dan moet he allemaal worden:
if (blablabal) {
$error[] = error; }
if (blabla etc, etc,??
Nielsie schreef:
En dan geen $error = maar $error[] = ERROR;

En dan een foreach
Hoe moet dat foreach?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Freestyle schreef:
Eerdere citaten tonen
Luukvdo schreef:
Je moet dan wel zorgen dat je van de elseif gewoon if maakt waar nodig
Dus dan moet he allemaal worden:
if (blablabal) {
$error[] = error; }
if (blabla etc, etc,??
Ja
Eerdere citaten tonen
Nielsie schreef:
En dan geen $error = maar $error[] = ERROR;

En dan een foreach
Hoe moet dat foreach?
[COLOR= #0000BB]<?php[/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= #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]
[COLOR= #007700]}[/COLOR]
?>
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dat $id => mag dan weg en je kan het beste met een count checken hoeveel errors er in de array staan
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
bedankt. De errors staan nu goed ty.

Alleen de rest van het script doet nog een beetje raarconfusedIk wil dat als je niks hebt gedaan. Tot je dan het form ziet.
En als het fout gaat zie je de errors. IS het goed gedaan dan voert hij de query uit.
Alleen als ik naar de pagina ga. Dan geeft hij gelijk alle errors aan.

het script:
Spoiler tonen
[COLOR= #0000BB]<?php[/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]

[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]
    
    [COLOR= #0000BB]$submit[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$escape[/COLOR][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]meldaan[/COLOR][COLOR= #007700]]);[/COLOR]
    [COLOR= #0000BB]$gebruiker[/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= #0000BB]$wachtwoord[/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= #0000BB]$email[/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= #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]$geb[/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= #0000BB]$stad[/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= #0000BB]$rang[/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]$submit[/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]$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]$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]$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]$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]$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]$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]$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]$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]$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]$gebruiker[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$wachtwoord[/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]$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]$geb[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",
                           "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$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>
        <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>
[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]
?>
.
Voor dat form moet ik op regel 83 else { toe voegen en op het eind weer }
Maar als ik dat doe geeft ie ook aan dat het fout is.

De pagina: http://vanmarijn.nl/nieuw/aanmelden

Wat is er fout aan? ik kan het zelf niet vindenconfused
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Wtf is $escape nouweer? emo
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nielsie schreef:
Wtf is $escape nouweer? emo
$escape( tekst )
is: mysql_real_escape_string santabaard
Maar kan jij mij helpen met mijn probleem?
0
Berichten
3.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Voor functies moeten geen $ he yummie
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kyron schreef:
Voor functies moeten geen $ he yummie
Hoe bedoel je?

ik haal toch gewoon die mysql__real_escape_string op. En hij werkt ook gewoon hoor. Ik krijg iig geen errors.
0
Berichten
515
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Freestyle schreef:
Eerdere citaten tonen
Kyron schreef:
Voor functies moeten geen $ he yummie
Hoe bedoel je?

ik haal toch gewoon die mysql__real_escape_string op. En hij werkt ook gewoon hoor. Ik krijg iig geen errors.
Heb je wel gecontroleerd hoe het in de database komt verder?
Ik heb ook zo mijn twijfels namelijkyummie
Ik help je zo eerst eten
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