What I need is for someone to check if the syntax of the following code is correct because I get an error code that says:
Parse error: parse error, unexpected $ in /pages/sample_holograms_page1.php on line 714
Line 714 is the last line of html in the php document, and it's the line under the closing </html> tag, but there's nothing on it. This code is from lines 312-322. When I remove these lines from the document, the form works error free.
Code: Select all
<?php
if (isset($_POST['country'])) {
echo '<option value="';
echo $_POST['country'];
echo '" selected>';
echo $_POST['country'];
echo '"</option>\n';
echo '<option value="United States">United States</option>\n';
} else {
echo '<option value="United States" selected>United States</option>\n';
?>