[PHP] Foute { ???

Gestart doorWashand5 reacties62 weergaven

6 berichten · pagina 1 van 1

Washand

Lid · Topicstarter

Berichten
1.909
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik krijg deze error:

Parse error: syntax error, unexpected { in /home/u189985844/public_html/formulier5.php on line 9
Ik heb een stukje html hiervoor weggelaten, nu is regel 2 hier hetzelfde als regel 9 daar. Ik snap dus niet waarom de { fout is...

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"titel"[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"naam"[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"naam"[/COLOR][COLOR= #007700]]!=[/COLOR][COLOR= #DD0000]""[/COLOR] [COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"titel"[/COLOR][COLOR= #007700]]==[/COLOR][COLOR= #DD0000]"m"[/COLOR][COLOR= #007700]) {[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" Goedendag meneer"[/COLOR][COLOR= #007700];       
    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" Goedendag mevrouw"[/COLOR][COLOR= #007700];
    }[/COLOR] 
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<strong>"[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"naam"[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]"</strong> , leuk dat je er bent!
<br>"[/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]"versturen"[/COLOR][COLOR= #007700]])) {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Gelieve alle velden in te vullen a.u.b. !
<br>"[/COLOR][COLOR= #007700];
        }
    }[/COLOR]
?>
0
Berichten
2.692
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"titel"[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"naam"[/COLOR][COLOR= #007700]]) && ([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"naam"[/COLOR][COLOR= #007700]]!=[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])) {[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"titel"[/COLOR][COLOR= #007700]]==[/COLOR][COLOR= #DD0000]"m"[/COLOR][COLOR= #007700]) {[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" Goedendag meneer"[/COLOR][COLOR= #007700];       
    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" Goedendag mevrouw"[/COLOR][COLOR= #007700];
    }[/COLOR] 
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<strong>"[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"naam"[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]"</strong> , leuk dat je er bent!n<br>"[/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]"versturen"[/COLOR][COLOR= #007700]])) {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Gelieve alle velden in te vullen a.u.b. !n<br>"[/COLOR][COLOR= #007700];
        }
    }[/COLOR]
?>
0
Washand

Lid · Topicstarter

Berichten
1.909
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
kan je ook nog uitleggen wat het verschil is? Ik wil er namelijk van leren yummie
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
op regel 2 was je 2x )) vergeten
0
Berichten
2.692
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Vergelijk regel 2 bij beide scripts yummie
Edit:
@Marjolein en een ( voor $_POST[naam]
0
Washand

Lid · Topicstarter

Berichten
1.909
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Oke ik zie het na 3x lezen ook yummieSlotje !
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