HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
changing input value with dropdown list
Post new topic   Reply to topic    HTML Help Forum -> HTML Form
View previous topic :: View next topic  
Author Message
awatts1984



Joined: 16 Oct 2009
Posts: 2

PostPosted: Fri Oct 16, 2009 6:27 am     changing input value with dropdown list Reply with quote

I'm trying to make a simple website that incorporates amazon's free "astore". It has a search function included in the sidebar already but i don't like it and really want to set up my own.

I found this search box code:

Quote:
<form action="http://astore.amazon.com/adbabel-20/search" method="get" target="_blank">
<input name="node" value="8" type="hidden">
<input name="keywords" size="12" value="" type="text">
<button type="submit" >Search</button>
</form>


it works well but is limited to searching only one category in my store (i have several). each category is assigned a "node" number. By changing the node value in the code I can change which category the box searches.

I want to create a drop down list that, upon selection, changes the node value and thus the category that is to be searched. Can anyone let me know how this might be done?
awatts1984



Joined: 16 Oct 2009
Posts: 2

PostPosted: Fri Oct 16, 2009 8:01 pm     problem solved! Reply with quote

Use this code to create an amazon astore search *with category selection*

<form action="http://astore.amazon.com/adbabel-20/search" method="get" target="_blank">
<select name="node" size='1'>
<option value='1'>Category 1</option>
<option value='2'>Category 2</option>
<option value='3'>Category 3</option>
<option value='8'>Category 8</option>
</select>
<input name="keywords" size="12" value="" type="text">
<button type="submit" >Search</button>
</form>
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> HTML Form All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial