WordPress.org

Ready to get started?Download WordPress

Forums

search form brings me to dashboard! (1 post)

  1. pmiranda
    Member
    Posted 8 years ago #

    When I use the search form in my sidebar, it brings me to the dashboard! Anyone knows how to fix this?

    I'm using the default template.

    In the sidebar, I have the following code:
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    In searchform.php, I have the following code:
    <form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    <div><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="Search" />
    </div>
    </form>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags