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%2W orld>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
I have a query string wrapped inside a href.......
<A HREF=CGIDOC?PARAM=Hello%2W
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<html>
<body>
<a href=Javascript:document.t heForm.sub mit()>
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>
<body>
<a href=Javascript:document.t
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.
ASKER