Web Analytics Made Easy -
StatCounter Search Button???? - CodingForum

Announcement

Collapse
No announcement yet.

Search Button????

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Search Button????

    How do i code a search button in PHP? i'm using dreamweaver and i need to code a search button for a school assignment, idk if i'm supposed to use php or not. A little help would be really handy.

    P.s my teacher is fine with me doing this btw

  • #2
    It really depends on what you are searching through. A database? A text file? A keyword??
    Notice: If you post a problem and it gets fixed, please remember to go back and place it as solved. ;)
    I always recommend the HEAD First series of books for learning a new coding language. ^_^

    Comment


    • #3
      Originally posted by Chris Hick View Post
      It really depends on what you are searching through. A database? A text file? A keyword??
      Yeah, on top of that it depends on your assignment. There are many different search functions or search algorithms that you might need to implement or use. Come back with more information.
      Useful function to retrieve difference in times
      The best PHP resource
      A good PHP FAQ
      PLEASE remember to wrap your code in [PHP] tags.
      PHP Code:
      // Replace this
      if(isset($_POST['submitButton']))
      // With this
      if(!empty($_POST))
      // Then check for values/forms. Some IE versions don't send the submit button 
      Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎