Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Nov 2002
    Posts
    97
    Member #
    278
    Hello,
    I have a search engine phpmysearch for our internal website and I have a form textbox to enter information in to run a search. Example below. However, what I'd like to have happen when a user clicks the box to enter their text I'd like the box to clear out the {Query} item I have listed there. How can I do this?

    Code:
    <form action="search.php">
    <input type="hidden" name="page" value="1">
    		<input type="text" name="search" value="{Query}" size="10" maxlength="255">
    		<input type="submit" name="go" value="GO!!">
    		<font class="normalp" color="#FFFF00">LINKS Quick Search!!</font>
    </form>
    Any help would be appreciated..

  2.  

  3. #2
    Member
    Join Date
    Nov 2002
    Posts
    97
    Member #
    278
    "onclick="value=''"

    Pretty cool.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:16 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com