Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2011
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Make Blank Text Input Box display nothing & not error message?

    I've text boxes which you enter your search into and those searches are saved into my database. When i enter the search terms, the next page displays the results. However when I enter nothing, an error messages appears. What code do i add to mine which will make nothing appear instead of an error message?
    Something along the lines of - If blank --> display none

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,869
    Thanks
    79
    Thanked 4,421 Times in 4,386 Posts
    How can we guess without seeing the code you are using?

    Heck, we don't even know if you are using PHP or JSP or ASP or CGI or whatever.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •