Passing SELECT Values to ASP 
Author Message
 Passing SELECT Values to ASP

I have the following form in which values are passed to an xml file via ASP.
In the form are two javascript select boxes, the items in sublist dependent
on what is shown in mainlist. The select boxes work great however I need the
value of mainlist to be passed as CATEGORY and the value of sublist to be
passed as SUBCATEGORY. The values of NAME, EMAIL, PHONE, etc. are being sent
fine but I can't for the life of me get anything to be included from the
select boxes. Please help.

<form method=post action="processgb.asp" name="form1">
<SCRIPT LANGUAGE="javascript">
var page=""
var i;
// call the function that fills in the arrays so we'll use them to fill the
page+="Select the main list: ";
page+="<SELECT NAME='mainlist' onChange='reFillList()'>";
for (i=0;i<MainList.length;i++) {
 page+="<OPTION VALUE="+MainList[i].nvalue;
 if (i==0) {
  page+=" SELECTED ";



&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp
Select SubList:

<SELECT NAME='sublist'>
<SCRIPT LANGUAGE="javascript">
// since we have selected the first value in the main list, we have to fill
this list


<br />

<table border = 1>

<table class="guest">
       <td align="RIGHT">Name:</td>
       <td><input type=text Name="NAME" maxlength="30"></td>
       <td align="RIGHT">Email:</td>
       <td><input type=text name="EMAIL" maxlength="50"></td>
       <td align="RIGHT">Phone:</td>
       <td><input type=text name="PHONE" maxlength="15"></td>
       <td align="RIGHT" valign="TOP">Description:</td>
       <td><textarea name="DESCRIPTION" cols="30" rows="7"></textarea>
       <input type=submit value="Send To Sunshine Arcade">




Sat, 27 Sep 2003 20:56:50 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Passing SELECT values to ASP

2. Please Help - Passing SELECT values to ASP

3. ASP : Passing values from One ASP to the Next

4. Passing Select Values

5. Passing value from select box to next page

6. select values--posting to mdb (beginner, asp)

7. Problem of Passing value from .asp to .vbs

8. Passing a value from ASP to the script

9. Passing a Value from JavaScript back to ASP

10. Passing Values to asp page

11. Passing Values to another asp file from inside VbScript

12. Frames and ASP and passing parameters / values


Powered by phpBB® Forum Software