close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Using a Button to POST search "Keywords" to WA Database Search results page

Thread began 6/06/2013 11:37 am by tom92909 | Last modified 6/06/2013 12:16 pm by Jason Byrnes | 550 views | 5 replies |

tom92909Beta Tester

Using a Button to POST search "Keywords" to WA Database Search results page

I'm trying to post specific keywords to the WA Database Search results page. I would like to accomplish this by using a button for a group of items. I'm tailoring this result set to ensure that site visitors get specific desired results for fast lookups.

Example:

<FORM name="search"><input type="BUTTON" onClick="window.location.href='plugins/searchresults.php'" value="Link"></FORM>

The above code needs to POST specific search words in quotes. Just as I would if I'm looking for specific information in a typical search input field. I would enclose the search words in quotes.

Sign in to reply to this post

Jason ByrnesWebAssist

1) you cant use a button to submit a form you need to use a submit element type:

<input type="submit"...


2) you need to have a text box to post the search words in

Sign in to reply to this post

tom92909Beta Tester

Understood that is the typical usage. I'm hoping to find a way to provide a link to gather up all of the products that might be desired without coding specific unique items into the query. Any suggestions?

Sign in to reply to this post

Jason ByrnesWebAssist

i dont follow what you mean

Sign in to reply to this post

tom92909Beta Tester

My apologies. Let me elaborate.

I have a customer site that sells lots of products. At times they want to highlight product brands online to increase sales for these specific branded products. They'll add specific brand related information on their index page and provide a link to get to those branded items. I'd like to provide a results page that gathers up these items in a results page. The search results page can accomplish the desired result, IF you provide specific keywords in the input. I'd like to accomplish the same results by using a hyperlink or a button.

Lets say we're talking about a liquor store. I'm looking for just "CROWN ROYAL" products. If I type in "CROWN" I'd get more than what I'm looking for. If I type in just Crown Royal without any quotes I'd get products that have crown and other products that have royal in the fields that I have targeted for the searches.

I hope that's a little more clear...

Sign in to reply to this post

Jason ByrnesWebAssist

you cant send post info fom a link, but you could do what you want with a submit button and a hidden form element:

<FORM name="search" action="searchresults.php" method="post"><input type="submit" name="submit" value="Crown Royal"><input type="hidden" name="same as keyword element on search page" value="CrownRoyal" /></FORM>

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...