473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

drop down boxes

1
Hey to everyone who visits this site, My name is Tomeka and Im a graduating senior at Mississippi Valley State, we are working on a project to mske an online trascript evaluation and the part I have was easy at first but now its confusion, I have two drop down menus the first is YEAR(2004,2005,2006); the second is MAJOR(comp sci, info sci., mathe ed, mathe) we set up some pages with the major and yeat together, i need to know if I select 2004 and select comp sci how will that page pull up when i click the continue button? I really need help with this, I know you use the SELECT script in my code but I forgot how to do this..... please help
Dec 2 '06 #1
2 3388
Hey to everyone who visits this site, My name is Tomeka and Im a graduating senior at Mississippi Valley State, we are working on a project to mske an online trascript evaluation and the part I have was easy at first but now its confusion, I have two drop down menus the first is YEAR(2004,2005,2006); the second is MAJOR(comp sci, info sci., mathe ed, mathe) we set up some pages with the major and yeat together, i need to know if I select 2004 and select comp sci how will that page pull up when i click the continue button? I really need help with this, I know you use the SELECT script in my code but I forgot how to do this..... please help
select *
from database_table
where year='#form.year#' and major='#form.major#'
Dec 21 '06 #2
acoder
16,027 Expert Mod 8TB
Hey to everyone who visits this site, My name is Tomeka and Im a graduating senior at Mississippi Valley State, we are working on a project to mske an online trascript evaluation and the part I have was easy at first but now its confusion, I have two drop down menus the first is YEAR(2004,2005,2006); the second is MAJOR(comp sci, info sci., mathe ed, mathe) we set up some pages with the major and yeat together, i need to know if I select 2004 and select comp sci how will that page pull up when i click the continue button? I really need help with this, I know you use the SELECT script in my code but I forgot how to do this..... please help
Assuming you have major and year together like CompSci2004, CompSci2005, etc. and assuming the pages are HTML pages, you could have an onclick handler on the continue button:
Expand|Select|Wrap|Line Numbers
  1. <form ... name="transcript" ...>
  2. <select name="majorSel">...</select>
  3. <select name="yearSel">...</select>
  4. <input type="button" name="continue" value="Continue" onclick="location.href=document.transcript.majorSel + document.transcript.yearSel + '.html';">
  5.  
Make sure that each option within the select has no spaces, e.g.
Expand|Select|Wrap|Line Numbers
  1. <option value="CompSci">Comp Sci
so the display shows spaces but the value that is passed has no spaces.

Hope that helps.
Dec 26 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: PT | last post by:
I got a form with many text boxes, checkboxes and 3 drop downs. From that 3, 2 are dependant. I can choose one drop down, and the next drop down should display the dependant values of the first...
0
by: Leigh | last post by:
I am building a data entry application using Java servlets. I had hoped to use drop down boxes to provide the user with data entry selections pulled from a database, but am now questioning, given...
4
by: Dan | last post by:
Can anyone offer suggestions on how to do this or if it is possible? I have a form that uses a drop down box and 2 text fields. What I am trying to do is have the value of each text box set by...
5
by: MasterChief | last post by:
I have 3 drop down boxes on the same page. Each one is being populated by a database. One is called Location, One is called Device and the other one is called Job Title. When the user selects...
2
by: Yoshitha | last post by:
hi I have 2 drop down lists in my application.1st list ontains itmes like java,jsp,swings,vb.net etc.2nd list contains percentage i.e it conatains the items like 50,60,70,80,90,100. i will...
5
by: Vigneshwar Pilli via DotNetMonster.com | last post by:
string connectionString1 = "server=(local); user=sa;password=sa; database=sonic"; System.Data.SqlClient.SqlConnection dbConnection1 = new System.Data.SqlClient.SqlConnection(connectionString1);...
7
by: callawayglfr | last post by:
I am building a database in access where I have a drop down box that relates to a text box, that part I have working but when someone selects information from the first drop down I need it to limit...
3
by: amcoldspy | last post by:
Hi, am trying to create dynamic drop down boxes.. there are 3 drop down boxes. The second drop down box elements are to be update based on the selection made in the first drop down box...
10
by: kashhere | last post by:
hi all, i had two drop down boxes on the selection of one item in the first drop down box the related items should be changed in the second one can any one please suggest me towards the solution...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.