Please Help - Passing SELECT values to ASP 
Author Message
 Please Help - 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
select
PrepareData();
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 ";
 }
 page+=">"+MainList[i].description;

Quote:
}

page+="</SELECT>";
document.write(page);

//-->
</SCRIPT>
&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
reFillList();

//-->
</SCRIPT>

</SELECT>
<br />

<table border = 1>
  <tr>
    <td>

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

   </table>

   </td>
  </tr>
 </table>

</form>



Fri, 26 Sep 2003 11:29:21 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Passing SELECT values to ASP

2. Passing SELECT Values to ASP

3. passing value to pop-up window. Please help

4. Passing Values between Frames... please Help

5. Please Help with passing listbox <select multiple> values in asp vbscript

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

7. Passing Select Values

8. Passing value from select box to next page

9. PLEASE HELP PLEASE HELP PLEASE HELP

10. passing values to pop-up window. Please helpt

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

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

 

 
Powered by phpBB® Forum Software