Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 31st, 2005, 01:23 PM
Authorized User
 
Join Date: Jun 2005
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
Default Passing values between asp pages

Hi there,

I have a page that has several dropdowns. In each of these dropdown has values such as "the house of mike is blue". When I clicked the submit button to post/pass the values, the receiving asp page only gets "the" when I use the request. Form ("fieldname"). Can someone tell me how I can pass the values in its entirety?

arnniema
__________________
arnniema
 
Old September 2nd, 2005, 08:06 AM
Authorized User
 
Join Date: Jun 2005
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi there all,

I got it to work. My code is as follow:
SQL1 = "Select field1, field2 from dabtable"
<select id="cmbCenter" name="cmbCenter" style="WIDTH: 235px">
  <%Set cnn = server.CreateObject("ADODB.Connection") %>
  <%cnn.Open DSN%>
  <%set rs1 = server.CreateObject("ADODB.recordset")%>
  <%rs1.Open SQL1, cnn%>
  <option selected>Select a DOH Center</option>
  <%do while not rs1.eof%>
  <option value= "<%=rs1("field1")%> "> <%=rs1("field1")%></option>
  <%rs1.movenext%>
  <%loop%>
</select>

This code read and add the values from a SQL database table to a dropdown field in an ASP page/form. And when the user click the submit button the entire selected value is passed to the receiving page/form.

arnniema





Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing values from asp to a javascript Abhilash Classic ASP Basics 11 June 15th, 2011 12:38 PM
Passing Form Values in ASP.Net sankar General .NET 10 September 21st, 2006 11:13 AM
Passing values between Asp to Aspx page jayaraj General .NET 2 May 25th, 2004 01:16 AM
Passing values between Asp to Aspx page jayaraj VS.NET 2002/2003 2 May 23rd, 2004 06:54 AM
Passing values between Asp to Asp pages. jayaraj ASP.NET 1.0 and 1.1 Professional 3 May 23rd, 2004 06:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.