Forums

Correct code to support site search in WP 1.5 (2 posts)

  1. derb
    Member
    Posted 3 years ago #

    I tried to edit my template and of course managed to break my site search code. Unfortunately I can't tell what I changed that made it go wrong. The blog is http://blog.org and the search form code in it now is:

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

    Where did I go wrong?

    P.S. I just discovered the "category" pulldown seems broken in the same way too.

  2. derb
    Member
    Posted 3 years ago #

    The code to the categories pulldown is:

    <li class="categories"><?php _e('Categories:');Ê?>
    <ul>
    <li>
    <form
    action="<?php echo $PHP_SELF&Ecirc;?>" method="get"><?php dropdown_cats();Ê?><input
    name="submit" value="view" type="submit"></form>
    </li>
    </ul>
    </li>

    Both return an error "The requested URL /< was not found on this server."

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags