GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 07-Apr-2006, 09:46
amgujral amgujral is offline
New Member
 
Join Date: Apr 2006
Posts: 1
amgujral is on a distinguished road

HTML Code


Hi below is some code that created. my aim is to have three drop down menus and with each selection (depending on what they are) and different jsp page appears. however, the page appears, but when i select from the drop down menus and click on the submit button the page just refreshes. could someone please suggest what i could do to make it work????
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HEAD> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <HTML> <TITLE>Diagnosis System</TITLE> <HEAD> <SCRIPT type="javascript"> <!-- function go() { if (symp1.value == 1 || symp2.value == 6 || symp3.value == 6)document.diagnosis.action="http://localhost/healthcare/Acne.jsp"; else if (symp1.value == 2 || symp2.value == 3 || symp3.value == 4)document.diagnosis.action="http://localhost/healthcare/Asthma.jsp"; else if (symp1.value == 3 || symp2.value == 4 || symp3.value == 5)document.diagnosis.action="http://localhost/healthcare/Headache.jsp"; else if (symp1.value == 4 || symp2.value == 5 || symp3.value == 6)document.diagnosis.action="http://localhost/healthcare/Heart.jsp"; else if (symp1.value == 5 || symp2.value == 6 || symp3.value == 6)document.diagnosis.action="http://localhost/healthcare/Cancer.jsp"; else if (symp1.value == 1 || symp2.value == 3 || symp3.value == 6)document.diagnosis.action="http://localhost/healthcare/Depression.jsp"; else if (symp1.value == 4 || symp2.value == 6 || symp3.value == 6)document.diagnosis.action="http://localhost/healthcare/Eating.jsp"; else if (symp1.value == 3 || symp2.value == 5 || symp3.value == 6)document.diagnosis.action="http://localhost/healthcare/STDs.jsp"; else if (symp1.value == 2 || symp2.value == 4 || symp3.value == 6)document.diagnosis.action="http://localhost/healthcare/Heart Failure.jsp"; {document.diagnosis.submit();} else {document.diagnosis.action="http://localhost/healthcare/None.html"; }} // --> </SCRIPT> </BUTTON> </HEAD> <body BACKGROUND="background.jpg"> <form name="diagnosis" METHOD="POST" ACTION="" onSubmit="return go()";> <TABLE> <TD><center> <H1><FONT FACE="Arial,Helvetica,sans-serif" COLOR="BLUE">Diagnosis System</FONT></H1> <CENTER> <FONT COLOUR="BLUE" FACE="Arial,Helvetica,sans-serif" SIZE="2"><TABLE BACKGROUND="background.jpg" CELLPADDING="8"> <P><TR align=left> <TD><B>Symptom 1</B></TD> <TH><SELECT NAME = symp1> <option value="0">Please select</option> <option value="1">Fever</option> <option value="2">Nausea</option> <option value="3">Rash</option> <option value="4">Diarrhea</option> <option value="5">Headache</option> </SELECT></TH> </TR> <P><TR align=left> <TD><B>Symptom 2</B></TD> <TH><SELECT NAME = symp2> <option value="0">Please select</option> <option value="1">Fever</option> <option value="2">Nausea</option> <option value="3">Rash</option> <option value="4">Diarrhea</option> <option value="5">Headache</option> <option value="6">None</option> </SELECT></TH> </TR> <P><TR align=left> <TD><B>Symptom 3</B></TD> <TH><SELECT NAME = symp3> <option value="0">Please select</option> <option value="1">Fever</option> <option value="2">Nausea</option> <option value="3">Rash</option> <option value="4">Diarrhea</option> <option value="5">Headache</option> <option value="6">None</option> </SELECT></TH> </TR> <TD><TD><P><INPUT TYPE="submit" NAME="submit" VALUE="Submit"></P></TD></TD> </TABLE> </FORM> </BODY> </HTML>
Last edited by cable_guy_67 : 07-Apr-2006 at 09:57. Reason: Please surround your HTML code with [html] your code [/html]
 
 

Recent GIDBlogFlickr uploads of IA pictures by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Guidelines for posting requests for help - UPDATED! WaltP C++ Forum 1 22-Aug-2008 00:07
functions seems not to exit from a certain code block jaro C Programming Language 3 21-Mar-2006 23:08
working with html HELP dopee MySQL / PHP Forum 10 18-Jan-2005 04:31
saving html text dopee MySQL / PHP Forum 1 17-Jan-2005 04:15
Problem with int mixed with char,... leitz C++ Forum 17 07-Dec-2004 20:56

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 00:58.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.