Link to home
Start Free TrialLog in
Avatar of christine hehre
christine hehre

asked on

Passing search term from one website to get results on another

I have a search field on one website which, when a user enters a value, I would like to pass that value to another website.

Here's the website: http://braasdev.cmhehre.com (first search box on top left)

Here's the code I'm using:
<form action="https://shop.braasco.com/store/search.do?searchType=keyword&keyword=" method="POST" target="_blank">
    <input type="text" name="keyword" id="searchInput" value=""/>
    <input type="submit">
        <input id="searchInput" name="searchInput" type="hidden" value="">
</form>

The issue is the term being entered isn't getting passed, and i don't know what to put after the "&keyword=[HERE]" to make the search term pass. If i put an actual value in there "...&keyword=Q" i get results for "Q" but I want it to be dynamic.

Thanks for the help!
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of christine hehre
christine hehre

ASKER

Well would you look at that! This is what ended up working:

<form action="https://shop.braasco.com/store/search.do?searchType=keyword" method="POST" target="_blank">
    <input type="text" name="keyword" id="searchInput" value=""/>
    <input type="submit">
</form>

Thank you a TON for your help!
glad that it helps, cheers
Quick, relevant and working solution! This was GREAT!