Link to home
Start Free TrialLog in
Avatar of rickyr
rickyr

asked on

Adding Form input to a HREF'd query string?

Hi guys......
I have a query string wrapped inside a href.......
<A HREF=CGIDOC?PARAM=Hello%2World>Click Me</A>

I have a popup on the same page.......
<SELECT NAME=POP1>
<OPTION>Fred
<OPTION>Barney
<OPTION>Wilma
</SELECT>

Without a submit button, how can I pass on the contents of the selection of the popup along with the query string?

regards
Ricky
ASKER CERTIFIED SOLUTION
Avatar of jhurst
jhurst

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 rickyr
rickyr

ASKER

Fire away j, and the points are yours.
<html>
<body>
<a href=Javascript:document.theForm.submit()>
Touch Here
</a>

<form name=theForm action=http://www.REsource.nu/cgi-bin/env.cgi>
<select name=pop1>
<option value=Fred>Fred
<option value=Barney>Barney
<option value=Wilma>Wilma
</select>
</form>
</body>
</html>
PS = note I use the onClick to actually cause the form to be submitted.  Also, I submitted to our env.cgi so that we could all check what is really happening.