View Full Version : javascript question involving a variable

04-10-2005, 09:17 AM
Hey all,

I have changed this question because the code I pasted before was not correct. I have also pasted this problem at another forum in a desperate attempt to find a solution so if anyone else comes accross this twice I am sorry. Any here is what I mean

I need the result of this drop down menu

to fill in a variable field on this button

the .js files for the two files can be found here

Cheers. :)


04-10-2005, 09:47 AM
Your code is incomplete.

Perhaps if you post the entire code, I could help.

Also do not avoid using quotes in html code. It's a bad practice.

i.e. <input type="text">


04-10-2005, 12:52 PM
Thanks for the tip ;).

Is this a much clearer example? I have reposted it above

04-11-2005, 05:47 AM
<form action="add.html" method="get">
<select name="category" style="width:380px"></select>
<select name="site" style="width:380px"></select>
<input type="submit" value="Add" />
When the form is submitted, the field value pairs are appended to the URL as querystring. If this is a javascript shopping cart and you are not using any server-side language, use this javascript (http://www.codingforums.com/showthread.php?t=25786) to retrieve the URL querystring parameters.

04-11-2005, 08:55 AM
Is it possible to have the generated and interpreted form on the same page? i.e. combining add.html with chained.html. so they are on the same.html page?