ThemeShaper Forums » Thematic

How do I add default "placeholder" text in searchbox?

(2 posts)
  • Started 2 years ago by shelzmike
  • Latest reply from amygail
  • This topic is not resolved
  1. shelzmike
    Member

    I mean, I know how..sort of. I am just not sure what to do with the following code:
    value="<?php echo wp_specialchars(stripslashes($_GET['s']), true) ?>

    Basically, rather than having a blank textbox on load, I want it to say something like "Search this site.." or something to that effect. Then when the user clicks in the box to enter their own term, it clears the text. Normally, this is easy, but since I am still learning php, I am not sure how to handle that with the code listed above.

    Thanks.

    Posted 2 years ago #
  2. amygail
    Member


RSS feed for this topic

Reply

You must log in to post.