jumpyg
09-11-2003, 12:33 PM
Hi,
I'm trying to create a search interface that will allow a user to search multiple web sites. You can click a series of checkboxes to search one, two, three, or more sites at the same time. The back end is already taken care of.
I have a hidden <input> tag that passes the domains to be searched to another program. The value attribute on the <input> tag needs to change depending on what checkbox is checked.
Example:
<input type"checkbox" name="domains" value="foo.com">
<input type"checkbox" name="domains" value="bar.com">
Checking these two checkboxes will add their values to the following hidden input tag:
<input type="hidden" name="domain_list" value="foo.com;bar.com">
Any idea how to do this? Thanks a lot!
I'm trying to create a search interface that will allow a user to search multiple web sites. You can click a series of checkboxes to search one, two, three, or more sites at the same time. The back end is already taken care of.
I have a hidden <input> tag that passes the domains to be searched to another program. The value attribute on the <input> tag needs to change depending on what checkbox is checked.
Example:
<input type"checkbox" name="domains" value="foo.com">
<input type"checkbox" name="domains" value="bar.com">
Checking these two checkboxes will add their values to the following hidden input tag:
<input type="hidden" name="domain_list" value="foo.com;bar.com">
Any idea how to do this? Thanks a lot!