VBScript Pass All Combo Box Fields

Experts,

The 1 sft Web Page code below gets all the network printers from a clients machine via a web page and loads them into a combo box. I need to get all those printers into some kind of variable or whatever and pass it to the 2nd WEb Page so I can view it and know how to get at the list of printers. In the end the complete list of printers will be sent to a DB.

PLEASE HELP!

CODE 1 sft Web Page
----------------------------------------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>

<script language="vbscript">
Sub PopulatePrinters()
Set WshNetwork = CreateObject("WScript.Network")
Set Printers = WshNetwork.EnumPrinterConnections
For i = 0 To Printers.Count - 1 Step 2
If(inStr(1,Printers.Item(i+1),"\\") > 0) Then
Call AddOption(Printers.Item(i+1), Printers.Item(i+1))
End If
Next
End Sub
</script>

<script language="javascript">
function AddOption(Text, Value){
var oPrinterSelect = document.MyForm.printers;
var oNewOption = new Option(Text, Value);
oPrinterSelect.options[oPrinterSelect.options.length] = oNewOption;
}
function PreparePostData()
{
     var elem = document.forms[0].printers;
    var s = "";
    for(i=0; i<elem.options.length; ++i)
    {
        s += elem.options[i].value;
        if (i < elem.options.length-1)
            s += ";"
    }
    document.forms[0]["AllPrinters"].value = s;
    document.forms[0].submit();
}
</script>
</head>
<body onload="PopulatePrinters()">
<form name="MyForm" method="post" action="PrinterToCONTROL.asp" ID="Form1">
<select name="printers" onchange="PreparePostData()" ID="printers">
</select>
<input type="hidden" name="AllPrinters" id="AllPrinters">
</form>
</body>
</html>


2nd Web Page
---------------------------------------------------------------------------------------------------------
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>

<%=Request.Form("printers")%>
HOW DO I MAKE THE COMPLETE LIST OF PRINTERS SHOW????????????

</body>
</html>
padgettbrianAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jimbobmcgeeCommented:
At first glance, I think it should be:

    <%=Request.Form("AllPrinters")%>

HTH

J.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
padgettbrianAuthor Commented:
Holly gez thats all i needed to do this whole time :)
Thanks
padgettbrianAuthor Commented:
I have another question that needs answering ASAP, that you can probably help with. :)

http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_21773606.html
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.