Parse error: syntax error, unexpected T_STRING
<p>I keep receiving the following error message upon the submission of a form on this page:</p>

<p><strong>Parse error: syntax error, unexpected T_STRING in /home/speedycm/public_html/speedyautos/myinfo.php(71) : eval()'d code on line 9</strong></p>

<p>How can I resolve this? I don't see anything wrong with my code.</p>

<pre><code> &lt;?php

    session_start();
    include_once ("config.php");

    include_once ("session.php");

    $O = new Owner($db);
    if ($SystemInfo-&gt;_systemstatus['Security_Image'] == 'A')
    {
                    $secure_img = insertSecurityImage("security_refid");
                    eval("\$security_image = \"" . $Template-&gt;GetTemplate("security_img") . "\";");
    }
    $hidaction = getVal('hidaction');

    include_once ("nav.php");
    if ($hidaction == "submitform")
    {

                    $O-&gt;owner_id = $_POST[oid];
                    $O-&gt;fname = $_POST[fname];
                    $O-&gt;lname = $_POST[lname];
                    $O-&gt;userid = $_POST[username];
                    $O-&gt;ep = $_POST[ep];
                    if (!empty($_POST[pass]))
                    {
                                    $O-&gt;password = $_POST[pass];
                    }
                    $O-&gt;address_1 = $_POST[addy1];
                    $O-&gt;address_2 = $_POST[addy2];
                    $O-&gt;city = $_POST[city];
                    $O-&gt;state_id = $_POST[state_id];
                    $O-&gt;country_id = $_POST[country_id];
                    $O-&gt;zip = $_POST[zip];
                    $O-&gt;phone = $_POST[tele];
                    $O-&gt;weburl = $_POST[url];
                    $O-&gt;site_email = ($_POST['subscrib'] == 1) ? "Y" : "N";
                    $O-&gt;occupation = $_POST[occ];
                    $O-&gt;age = $_POST[age];
                    $O-&gt;dealership = $_POST['deship'];
                    $O-&gt;sub_seed = $_POST['dsub'];
                    $O-&gt;qty = $_POST['qty'];
                    $O-&gt;Edit = TRUE;

                    if ($_POST['formtype'] == 'dealer')
                    {
                                    $O-&gt;listed_by = $listed_by = 'D';
                                    $HeaderFile = "dealer";
                    } elseif ($_POST['formtype'] == 'seller')
                    {
                                    $O-&gt;listed_by = $listed_by = 'S';
                                    $HeaderFile = "seller";
                    }
                    else
                    {
                                    $HeaderFile = "buyer";
                                    $O-&gt;listed_by = 'B';
                    }
                    $O-&gt;VerifyUser();

                    if (!$O-&gt;UserError)
                    {

                                    if ($O-&gt;owner_id)
                                    {
                                                    $O-&gt;Update();

                                                    if ($O-&gt;msg == "S")
                                                    {
                                                                    eval("\$display = \"" . $Template-&gt;GetTemplate("leftside") . "\";");
                                                                    eval("\$display .= \"" . $Template-&gt;GetTemplate($HeaderFile . "_header") . "\";");
                                                                    $Message = $InfoUpdateSuccess;
                                                                    eval("\$display .= \"" . $Template-&gt;GetTemplate("error_msg_close") . "\";");
                                                                    eval("\$footer = \"" . $Template-&gt;GetTemplate("footer") . "\";");
                                                                    eval("\$main = \"" . $Template-&gt;GetTemplate("main") . "\";");
                                                                    $Template-&gt;ProcessTemplate($main);
                                                                    exit;
                                                    }
                                                    else
                                                    {
                                                                    $error = $UpdatedFailedMsg;
                                                    }
                                    }
                    }
                    else
                    {
                                    $error = $O-&gt;UserError;
                    }
    }
    $O-&gt;owner_id = $_SESSION['oid'];
    $O-&gt;Load();
    $_POST['state_id'] = $O-&gt;state_id;
    $_POST['country_id'] = $O-&gt;country_id;
    $SubCheck = ($O-&gt;site_email == "Y") ? "checked=\"checked\"" : "";
    $listed_by = $O-&gt;listed_by;
    $r = getVal('r');
    if ($r == 2)
    {
                    $listed_by = 'D';
    } elseif ($r == 1)
    {
                    $listed_by = 'S';
    }


    include_once ("state_select.html.php");
    include_once ("country_select.html.php");


    eval("\$display = \"" . $Template-&gt;GetTemplate("leftside") . "\";");

    if ($listed_by == 'D')
    {
                    eval("\$display .= \"" . $Template-&gt;GetTemplate("edit_dform") . "\";");
    } elseif ($listed_by == 'S')
    {
                    eval("\$display .= \"" . $Template-&gt;GetTemplate("edit_sform") . "\";");
    }
    else
    {
                    eval("\$display .= \"" . $Template-&gt;GetTemplate("edit_bform") . "\";");
    }

    unset($O);
    eval("\$footer = \"" . $Template-&gt;GetTemplate("footer") . "\";");
    eval("\$main = \"" . $Template-&gt;GetTemplate("main") . "\";");
    $Template-&gt;ProcessTemplate($main);

    ?&gt;
</code></pre>

<p>line 9 reads</p>

<pre><code>   if ($SystemInfo-&gt;_systemstatus['Security_Image'] == 'A')
    {
                    $secure_img = insertSecurityImage("security_refid");
                    eval("$security_image = \"" . $Template-&gt;GetTemplate("security_img") . "\";");
    }
</code></pre>

<p>line 71 reads</p>

<pre><code>eval("\$display .= \"" . $Template-&gt;GetTemplate($HeaderFile . "_header") . "\";");
                                                                $Message = $InfoUpdateSuccess;
</code></pre>
