Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.