Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. I need help with this simple form intergration.

I need help with this simple form intergration.

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
help
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ronsang90
    wrote on last edited by
    #1

    Ok I have created a simple search form.

    So I need a way in which when I input a search term, the form returns result from google and displays them below the page. Thanks.

    C 1 Reply Last reply
    0
    • R ronsang90

      Ok I have created a simple search form.

      So I need a way in which when I input a search term, the form returns result from google and displays them below the page. Thanks.

      C Offline
      C Offline
      cjoki
      wrote on last edited by
      #2

      You need to trigger it off of either the javascript events onblur, onkeyup or onkeydown and then use a ajax message to a serverside script to query google and then return the results to you page....or you can google, "on how to add a google search to your site", maybe "with autcomplete" as an additional search parameter.

      Chris J www.redash.org

      K 1 Reply Last reply
      0
      • C cjoki

        You need to trigger it off of either the javascript events onblur, onkeyup or onkeydown and then use a ajax message to a serverside script to query google and then return the results to you page....or you can google, "on how to add a google search to your site", maybe "with autcomplete" as an additional search parameter.

        Chris J www.redash.org

        K Offline
        K Offline
        Kevin Schaefer
        wrote on last edited by
        #3

        Do you really want asyncronous results? If not, you can just handle the POSTed data back to the script...something like:

        if(isset($_POST['search']))
        {
        //do something with the search here
        }
        else
        {
        //print the search form since nothing's been submitted yet.
        }

        Of course using AJAX would be pretty nifty :)

        C 1 Reply Last reply
        0
        • K Kevin Schaefer

          Do you really want asyncronous results? If not, you can just handle the POSTed data back to the script...something like:

          if(isset($_POST['search']))
          {
          //do something with the search here
          }
          else
          {
          //print the search form since nothing's been submitted yet.
          }

          Of course using AJAX would be pretty nifty :)

          C Offline
          C Offline
          cjoki
          wrote on last edited by
          #4

          I should add that jquery can make the whole ajax thing much easier to do.

          Chris J www.redash.org

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups