I need some help!

They have: 14 posts

Joined: Jun 1999

Hi,

I am very new at javascript and barely know anything about it. What I want to do is have a form that has a text box where they can enter keywords, a pull down list where they can choose where to search and a submit button. I want two options in the pull down list to submit the keyword(s) to two different cgi scripts. So, when someone selects an item in the drop down list and clicks on the submit button, I want that keyword to be sent to that specific cgi script.

This is what I want in the pull down list:
WSR
Internet

This is the cgi scripts that I want the keywords to be sent too that correspond with the list above:
http://www.wsresource.com/links/cgi-bin/search.cgi
http://www.brandedsearch.com/cgi-bin/search.cgi

I know this can be done somehow because I have see it on many pages. I am pretty sure it is done with javascript, but if it can't just let me know.

If you need any more info from me to help me, just let me know and I will post it up ASAP.

I would really appreciate it if someone could help me.

Thanks!

Chris Roane

[This message has been edited by wsresource (edited 13 January 2000).]

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,

www.htmlGoodies.com has a decent primer on javascript (if that's what you are looking for). If you want to know how to use links in a dropdown, see the "Select & Go Menus" at my site. Insofar as sending info to a cgi, it's all part & parcel of a form's action and submission. See Oreilly's definitive guide or Goodman's Javascript Bible.

Hope this helps

Vinny GrassBlade: cut&paste javascript

Where the world once stood
the blades of grass cut me still

They have: 14 posts

Joined: Jun 1999

Thank you for your comment Vincent, but I resolved the problem. I was surfing the web and I happened to fumble over a cgi script. I was able to customize it to fit my needs perfectly. It was actually really easy to do.

Thanks!

Chris Roane

------------------

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.