PHP Error Message
-
Hi,
I have the followed PHP code using your plugin:
<form id="619843112" method="POST"><select name="selection"> <option value="Windows 7">Windows 7</option> <option value="Windows 8 + 8.1">Windows 8 + 8.1</option> </select> </form> <!-- PHP TIME --> [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] <!-- IT'S HTML AGAIN --> <p>My Sentence: [insert_php] echo $list; [/insert_php]</p>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?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘PHP Error Message’ is closed to new replies.