Parse error: parse error, unexpected T_ELSE in /home/

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Can anyone find a solution of this error? I really can;t find it.

The code is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<style type="text/css">
             body {margin : 0px;}
<body bgcolor="navy">
<font color="white">
Welkom in de winkel. Wat wilt u doen?<br>
<form action="club.php" method="post">
<input type="radio" name="keuzewinkel" value="1">Voer kopen<br>
<input type="radio" name="keuzewinkel" value="2">Bijproducten kopen<br>
<input type="radio" name="keuzewinkel" value="3">Medicijnen kopen<br>
<input type="radio" name="keuzewinkel" value="4">Praatje maken met de
<input type="radio" name="keuzewinkel" value="5">Duiven verkopen / kopen<br>
<input type="submit" value="Verder">
if (isset($submit)) {
if ($keuzewinkel == '1') include('koopvoer.php')
else ($keuzewinkel == '2') include('koopbijproducten.php') <-- Line 25!!!!
else ($keuzewinkel == '3') include('koopmedicijnen.php')
else ($keuzewinkel == '4') include('chatverkoper.php')
else include('koopduiven.php')

Thnx all!

Re: Parse error: parse error, unexpected T_ELSE in /home/ kel.php on line 25

lines 25 and 26 need to be 'else if', not else.  PHP is complaining
about your if/else setup.

Site Timeline