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!
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
glad that it helps, cheers
ASKER
Quick, relevant and working solution! This was GREAT!
ASKER
<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!