Jump to content

Capture search terms


harkly

Recommended Posts

Not sure where this question belongs.

 

I have a basic search function on my site and I want to be able to log what people are searcing for. I have googled it but not getting anything useful, may be using the wrong terminology. Anyone have any sites that talk about this? Just looking to be headed in the right direction.

 

My search form - site is done in PHP & MySql

 

  <div id='search'>
    <h3><form name='search' method='get' action='ifElse.php' onsubmit='return checkform(this);'>
    Search 
    <select NAME='field'>
    <option value='all'>All</option>
    <option value='artist'>Artists</option>
    <option value='artwork'>Art Works</option>
    <option value='keywords'>Keywords</option>
    </Select>
    for <input type='text' name='find' />
    <input type='submit' name='search' value='Find' />
    </form></h3>
  </div>

Link to comment
https://forums.phpfreaks.com/topic/152297-capture-search-terms/
Share on other sites

"I have a basic search function on my site and I want to be able to log what people are searcing for. " How do I do that is my question.

 

I already told you.  Create a table with the information you want to store (user name, date, time, search word, etc...) and insert it into your table when the user submits their search.  If you don't know how to do that, then ask a little more of a specific question.  There are a lot of tutorials on how to insert into a database with PHP and MySQL.

Link to comment
https://forums.phpfreaks.com/topic/152297-capture-search-terms/#findComment-799801
Share on other sites

harkly don't worry mate, continue asking questions, that how someone learns on a forum.

 

What the problem is in reality, programmer like maq helps loads of people daily, and other programmers throw there examples in to prove there a programmer, and it makes programmers like maq get stressed from time to time it natrual trying to get a point across in a forum. 

 

i am always told of lol.

 

you no what i mean good programmer like maq re written php manual on here, he such a life saver, only wants a thank u.

Link to comment
https://forums.phpfreaks.com/topic/152297-capture-search-terms/#findComment-799930
Share on other sites

harkly don't worry mate, continue asking questions, that how someone learns on a forum.

 

harkly, please by all means ask as many questions as you'd like.  I didn't mean to give you the impression that I get tired of answering questions, after all, this is why I'm here, I like helping people.

 

Thx redarrow  ;)

Link to comment
https://forums.phpfreaks.com/topic/152297-capture-search-terms/#findComment-799936
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.