1,105,556 Community Members

unexpected T_STRING on line 15

Newbie Poster
1 post since Apr 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
Unverified Member

I do not see it!

    //Code for Header and Search Bar

    function headerAndSearchCode() {
    $defaultText = htmlentities($_GET['keywords']);
    echo '
    <header id="main_header">
    < div id= "rightAlign">


      //links will be here

        <a href=\"index.php\"><imgsrc="http://www.lisa1986.com/images/mainLogo.png"></a>
    <div id=\ "top_search\">
        <form name=\"input\" action=\"search.php\" method=\get\">
        <input type=\"text\" id=\"keywords\" size="\100px\" class=\"searchBox\"  

        <select id=\"category\" name\"category\" class=\"searchBox\">

//include categories here
echo '

    <input type="submit" value"Search" class"button" />

Member Avatar
Posting Virtuoso
1,710 posts since Aug 2007
Reputation Points: 461 [?]
Q&As Helped to Solve: 345 [?]
Skill Endorsements: 44 [?]

Between line 11-13 there is no echo and on line 15 you are not escaping double quotes as in the other tags. Change it to:

<img src=\"http://www.lisa1986.com/images/mainLogo.png\">
This article has been dead for over three months: Start a new discussion instead
Start New Discussion
Tags Related to this Article