Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Programming > HTML
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Reply
 
Thread Tools Search this Thread Display Modes
Old 01-14-2008, 11:54 AM   #1
mars guitars
Junior Guru
 Contributor 
 
mars guitars's Avatar
 
Join Date: Aug 2007
Posts: 742
mars guitars has a spectacular aura aboutmars guitars has a spectacular aura aboutmars guitars has a spectacular aura about
Default How can I get string from URL to Search Form?

OK, so my search form looks like this:

Quote:
<FORM NAME="quick_find" ACTION="index.asp?function=SEARCH" METHOD="POST">

But what I want to do is put links on my site that automatically fill in the search text....

e.g. instead of the user typing 'tuners' in the search box an pressing enter, I want a link that says 'search for all Tuners' and when they click it it does the search. Is there an easy way to pass text to teh search function?

Thanks,
MG
__________________
Guitar strings and accessories, Rotosound bass strings, Guitar Capos and Guitar Gifts from Mars Guitars UK
. . . .under development.. guitar string guide
mars guitars is offline   Reply With Quote
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 01-14-2008, 03:10 PM   #2
UnKnown
Tellin' it like it is!!
 
UnKnown's Avatar
 
Join Date: Aug 2006
Posts: 1,082
UnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really nice
Default Re: How can I get string from URL to Search Form?

i use Ajax to suggest words that are pulled out of my database
Attached Images
File Type: jpg search.JPG (52.2 KB, 4 views)
UnKnown is offline   Reply With Quote
Old 01-15-2008, 05:54 AM   #3
mars guitars
Junior Guru
 Contributor 
 
mars guitars's Avatar
 
Join Date: Aug 2007
Posts: 742
mars guitars has a spectacular aura aboutmars guitars has a spectacular aura aboutmars guitars has a spectacular aura about
Default Re: How can I get string from URL to Search Form?

Quote:
Originally Posted by UnKnown View Post
i use Ajax to suggest words that are pulled out of my database

Thanks... looks like a clever trick, but how do I do the basic 'link to specific search' that I'm after. Can I just do it in html? I'm a real numptie at such things, so please state the obvious if I'm missing it...

Thanks
__________________
Guitar strings and accessories, Rotosound bass strings, Guitar Capos and Guitar Gifts from Mars Guitars UK
. . . .under development.. guitar string guide
mars guitars is offline   Reply With Quote
Old 01-15-2008, 07:04 AM   #4
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,470
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: How can I get string from URL to Search Form?

I've seen similar to what you are talking about...I've seen loads of these searches on the search engines...I think what you need to look up is "Tags", because I think that it is tags that create the searches for you...If your search query looked like /?search=tag, I don't think it would be very difficult to fill in the blanks with common searches....The only thing, where do you find out what the common searches are?
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline   Reply With Quote
Old 01-15-2008, 07:18 AM   #5
mars guitars
Junior Guru
 Contributor 
 
mars guitars's Avatar
 
Join Date: Aug 2007
Posts: 742
mars guitars has a spectacular aura aboutmars guitars has a spectacular aura aboutmars guitars has a spectacular aura about
Default Re: How can I get string from URL to Search Form?

Hi Jump.

That's exactly the sort of thing I have in mind, but can't make it work and don't know what to change to make it work...

Deciding the search terms is easy - I see it just a way of cross-categorisation.

e.g. Some 'Shubb' brand products are in my Capos section, some are in my Accessories section. If I had a standard search for 'Shubb' I could show customers all Shubb products in one go.

Thanks anyway - I'm sure there's an answer out there somewhere....
__________________
Guitar strings and accessories, Rotosound bass strings, Guitar Capos and Guitar Gifts from Mars Guitars UK
. . . .under development.. guitar string guide
mars guitars is offline   Reply With Quote
Old 01-15-2008, 07:43 AM   #6
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,470
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: How can I get string from URL to Search Form?

Well, lets think about this a while....What can we do to make this work? Obviously, you are running your own scripts, so you need to integrate this into your site....So, logically, you want Google to perform searches on your site's search function, that's not impossible...The first thing you think "Hey, lets give some links to some of the most common searches".....Okay, so then thought gives birth to what's known as a tag cloud...Right? Now, what we need to know is how to perform this "Tag Cloud" thing on a regular unscripted website? Is that what we are after? I would have to suggest, and I think this would be the most intelligent thing anyone could do...Perform the search, and relay the tag cloud...with mod_rewrite in your pocket.....Recently I've discovered the use of mod_rewrite, and I have doubled my traffic from Google, and trippled it from Yahoo....If you can perform the search to look like: site.com/search/the-tag-im-after.html...then I think that you can do far better on the search engines....

Okay, back on track...How is it that you can utilize this tool? Do you know how to program in PHP? I think it would be relatively easy in PHP, although, you would need to make use of a MySQL database to keep track of your most entered queries...But if you can do that, I really don't think that anything else would be that complicated.
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline   Reply With Quote
Old 01-15-2008, 11:29 AM   #7
mars guitars
Junior Guru
 Contributor 
 
mars guitars's Avatar
 
Join Date: Aug 2007
Posts: 742
mars guitars has a spectacular aura aboutmars guitars has a spectacular aura aboutmars guitars has a spectacular aura about
Default Re: How can I get string from URL to Search Form?

Jump, many thanks for the stream-of-conciousness response!

That led me to thinking "I must check out mod_rewrite - sounds very useful"...

So I Googled mod_rewrite and found http://www.sitepoint.com/article/guide-url-rewriting , which seemed like a good starting point. Scanned through some stuff about mod_rewrite, then thought "I wonder how the search on this site works"? Did a search and noticed the URL is now: http://www.sitepoint.com/search/sear...&q=mod_rewrite

Had a poke around his source HTML, compared with mine, experimented a bit and hey presto: http://www.marsguitars.co.uk/index.a...H&search=shubb

This is all I was trying to do!! I didn't need to change any code, just understand it a bit better.

I can now put links on my site that carry out pre-defined searches (e.g. click manufacturer's logo to see all products from that manufacturer).

It's a start. Now I just need to think about learning php, tag clouds, mod_rewrite....

Thanks for your help
__________________
Guitar strings and accessories, Rotosound bass strings, Guitar Capos and Guitar Gifts from Mars Guitars UK
. . . .under development.. guitar string guide
mars guitars is offline   Reply With Quote
Old 01-15-2008, 05:31 PM   #8
UnKnown
Tellin' it like it is!!
 
UnKnown's Avatar
 
Join Date: Aug 2006
Posts: 1,082
UnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really nice
Default Re: How can I get string from URL to Search Form?

Quote:
Originally Posted by mars guitars View Post
Hi Jump.

That's exactly the sort of thing I have in mind, but can't make it work and don't know what to change to make it work...

Deciding the search terms is easy - I see it just a way of cross-categorisation.

e.g. Some 'Shubb' brand products are in my Capos section, some are in my Accessories section. If I had a standard search for 'Shubb' I could show customers all Shubb products in one go.

Thanks anyway - I'm sure there's an answer out there somewhere....

are you interested into a search cloud script to be adapted into your site?

Like here at the bottom of the page

http://torrentstorage.com

I was easy to adapt it.

it pulls searches from the database

http://stevethomas.com.au/php/how-to...l-and-css.html

that one is simple to integrate
UnKnown is offline   Reply With Quote
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Reply



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Small URL ? Shorten Your URL ! - http://TubeURL.com metros Advertise your website 1 10-11-2007 08:35 PM
Free Web Directory Site Link Submission - Submit Your Website URL to Search Engines maher Your directory 5 08-23-2007 08:45 PM
encrypt and decrypt query string hanusoftware Programming 0 06-07-2007 07:21 AM
Making Search Engine Friendly URL midlandi Search Engine Optimization (SEO) 10 03-09-2007 11:49 PM
Query String pakadtrader JavaScript 3 01-28-2007 09:11 AM


All times are GMT. The time now is 05:29 AM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.