1,105,417 Community Members

unexpected T_STRING on line 15

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

I do not see it!

    <?php
    //Code for Header and Search Bar

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

   ';

      //links will be here

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

        value=\"$defaultText\">  
        <select id=\"category\" name\"category\" class=\"searchBox\">


";
//include categories here
echo '
    </select>

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



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

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\">
You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article