PC Review


Reply
Thread Tools Rate Thread

How do I pass information tied to dropdown Field

 
 
Dave
Guest
Posts: n/a
 
      20th Apr 2004
This is in FrontPage 2003

I have a form set up that the user selects a unique ID from a dropdown based
on a database.

Using this same database ID, I want the Confirmation page to show this ID as
well as additional fields from the database that are tied to this ID.

This ID and other information being input in the initial form are being sent
to a second database.

An example the user is inputting First Name - Last name - selecting a class
ID form a dropdown list and clicking submit.

When the confirmation page comes up, I want the user to see the class
information as well as his/her name.

I am really stuck.

Dave




 
Reply With Quote
 
 
 
 
Dave
Guest
Posts: n/a
 
      20th Apr 2004
Some more info!

In my code I have only one value listed and that is for the CID. How do I
pass a value for CLASS which is A+ and the DATE which is June 6th.

Or how do I display the database results tied to the CID? Either way would
give me what I want.

Thanks

Dave

"Skydolphin" <(E-Mail Removed)> wrote in message
news:E59CB62C-A748-499B-B5CE-(E-Mail Removed)...
> There are several different ways to do this. Assuming you are using an

ASP page the easiest way is this. In your form tag make sure you have the
action=address of the confirmation page and method=post. Then in the ASP
script in the confirmation page you can set variables equal to the posted
values from the form page. Something like:
>
>
> <form id="myform" action="confirm.asp" method="post"><input type="text"

name="student"><select size="1" name="CID"><option
value="1">1</option><option value="2">2</option></select></form>
>
> in the confirm page, get the values passed in from the form page.
> <%
> classId = request.form("CID")
> studentName = request.form("student")
> %>
>
> Be sure the values inside the quotes match the names of the form fields

from the form page.
>
> Does that make sense?
>
> Rhonda



 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      20th Apr 2004
This makes sense, but here is the catch unless I am missing your point.

To make this simple for my poor brain.

The student inputs his/her NAME. Then uses the drop down to choose A+ on
June 6th which is being fed from a database. Tied to this record is CID 7.

On the confirmation page I get "7", and the student NAME, but not A+ on June
6th.

The CID is being fed, but not the A+ or June 6th.

I tried a Results Wizard and I can show all the classes, but if I try to tie
the results to the CID, I get the yellow error the wizard generates.
Am I missing the point?

Thanks for writing!!!

Dave

"Skydolphin" <(E-Mail Removed)> wrote in message
news:E59CB62C-A748-499B-B5CE-(E-Mail Removed)...
> There are several different ways to do this. Assuming you are using an

ASP page the easiest way is this. In your form tag make sure you have the
action=address of the confirmation page and method=post. Then in the ASP
script in the confirmation page you can set variables equal to the posted
values from the form page. Something like:
>
>
> <form id="myform" action="confirm.asp" method="post"><input type="text"

name="student"><select size="1" name="CID"><option
value="1">1</option><option value="2">2</option></select></form>
>
> in the confirm page, get the values passed in from the form page.
> <%
> classId = request.form("CID")
> studentName = request.form("student")
> %>
>
> Be sure the values inside the quotes match the names of the form fields

from the form page.
>
> Does that make sense?
>
> Rhonda



 
Reply With Quote
 
=?Utf-8?B?U2t5ZG9scGhpbg==?=
Guest
Posts: n/a
 
      20th Apr 2004
Can you send me a copy of your code so I can see what you are doing? You can change the names of the DB and stuff for this purpose

Rhonda
 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      20th Apr 2004
Do you want the entire asp pages or cut and paste the code?

Thanks

Dave


"Skydolphin" <(E-Mail Removed)> wrote in message
news:0EC66751-52AD-419F-B055-(E-Mail Removed)...
> Can you send me a copy of your code so I can see what you are doing? You

can change the names of the DB and stuff for this purpose.
>
> Rhonda



 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      20th Apr 2004
This is one place that I think another value needs to be added.

<!--webbot bot="DatabaseRegionStart" endspan i-CheckSum="47620" --><select
NAME="ClassID" SIZE="1">

<!--webbot bot="AspInclude" clientside u-incfile="_fpclass/fpdbrgn1.inc"
startspan --><!--#include file="_fpclass/fpdbrgn1.inc"-->

<!--webbot bot="AspInclude" endspan i-CheckSum="5346" -->

<option
VALUE="<%=FP_FieldHTML(fp_rs,"ID")%>"><%=FP_FieldHTML(fp_rs,"Class")%>&nbsp;
&nbsp;&nbsp;<%=FP_FieldHTML(fp_rs,"Date")%>

</option>

"Skydolphin" <(E-Mail Removed)> wrote in message
news:0EC66751-52AD-419F-B055-(E-Mail Removed)...
> Can you send me a copy of your code so I can see what you are doing? You

can change the names of the DB and stuff for this purpose.
>
> Rhonda



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to have one field be tied to multiple fields? Norm Microsoft Access Database Table Design 1 17th Mar 2009 02:58 PM
How can I manually edit a field tied to a control source? =?Utf-8?B?S2lw?= Microsoft Access Forms 2 3rd Apr 2007 03:32 PM
Find CommandButton tied to specific field =?Utf-8?B?Q2FyaQ==?= Microsoft Access Forms 3 7th Dec 2004 11:15 PM
I want to pass 2 variables using a dropdown Dave Microsoft Frontpage 3 1st Dec 2004 09:20 PM
Bound text box in a chart tied to parameter field in a query Russ Microsoft Access Reports 1 13th Feb 2004 04:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:18 PM.