Jump to content

PHP Help


UTHTent

Recommended Posts

 

if ($_POST["taal"] == "ICT")
{
    echo ("ICT-opleidingen zijn vol. Kies een andere opleiding.");
}
elseif
{
    echo ("Uw opleiding: ") . $_POST["OG"];
}

 

An elseif() statement requires a condition. Perhaps you meant to use just an else statement

 

Do this:

 

if($foo == 'one')
{
    //Do something
}
elseif ($foo == 'two)
{
    //Do something else
}

 

Or this:

 

if($foo == 'one')
{
    //Do something
}
else
{
    //Do something else
}
Link to comment
https://forums.phpfreaks.com/topic/295193-php-help/#findComment-1507952
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.