[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Adding Form input to a HREF'd query string?

Posted on 2000-02-21
4
Medium Priority
?
140 Views
Last Modified: 2013-12-25
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
0
Comment
Question by:rickyr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 8

Accepted Solution

by:
jhurst earned 150 total points
ID: 2543858
In Javascript you can determnine that the value in the menu has changed using onChange.  Then this can update th value of the link so that when the user touches the link it has been changed.

Probably a better choice would be to make the href actually do a call to a JS function and have the JS function do the reference.
0
 
LVL 3

Author Comment

by:rickyr
ID: 2568774
Fire away j, and the points are yours.
0
 
LVL 8

Expert Comment

by:jhurst
ID: 2570434
<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>
0
 
LVL 8

Expert Comment

by:jhurst
ID: 2570441
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.  
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The viewer will learn how to count occurrences of each item in an array.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question