I have the followed PHP code:
Windows 7 Windows 8 + 8.1[insert_php] //begin script
$select = $_POST[‘selection’];
if ($select == “Windows 7”) {
$list = “Text here”;
} elseif ($select == “Windows 8 + 8.1”) {
$list = “Text heree”;
}
[/insert_php]
My Sentence: [insert_php]echo $list; [/insert_php]
However, I’m receiving the following message:
Parse error: syntax error, unexpected T_VARIABLE in /home/a7707917/public_html/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 2
How can I resolve this?