Not really easy what you are trying to do!!!
As far I understand you whant to create html document which will work on javascript???
But have do you whant to do this part???
Business Brown for the first 100 students, then Davis
Computer Information Systems Cunningham for the first 100 students, then Lee
There are two options to do this
1. cheat, the way you just count people going for this courses and not to hold any info on them
So person apply for Business, check variable which holds value for amount of people which already registered for this option, if less than 100 send it to Brown else it is more than 100 goes to Davis, in both cases increase by one after all
2. build txt file which will work for you as database, this is more complicated you have to build algoritmus which is able to read/write database and then another algoritmus which will check how many students already on course and make decision where to send a new student
So what do you want to do??? :?:
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
Eager Student you are realy eager or to lazy
I will not do second one it is complicated as far I judge by demand.
Well so 1st
You have to build up some kind of form which will take all detailes and have classic RESET button and SUBMIT/CHECK button. Design of form is really by your taste checkboxes, radio, input fields, options that is your bussiness.
Than in java script declare your function/-s
Declare variables which will keep values for students for BUSSINESS & IT to know how many of them been registered. However this will keep them as long you do not refresh or close page.
You have to also declare variables which will hold temporary values ADVISOR and DORMITORY which will be displayed somewhere
if(selected BUSSINESS)
check variable for bussiness
if under 100 goes to Brown
else Davis
check age(DOB against current date)
if under 21 Washington
else Adams
if(selected IT)
check variable for it
if under 100 goes to Cunnigham
else Lee
check age
if under 21 Jefferson
else Lincoln
if(selected HEATING)
goes to Parke
accomodation Grant
else <that mean HOSPITALITY or UNDECLARE>
if(HOSPITALITY)
goes to Hunter
else
goes to Ulster
bouth of this dormitory Wilson
Than display what you found about student
as alert message if you do not have fields where to dispaly
or
display in predesigned fields
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902