I have a servlet which takes parameters from web pages, and I would like to
be able to have input fields which submit multiple values,
i.e. I would like to be able to associate one submission with another, so if
the
user selects one thing, another value will be submitted also...
I have tried this but it's obviously wrong. Do I need to write a function?
I tried a function too but that didn't work...
<INPUT TYPE="radio" NAME="about_HIV" VALUE="no" TYPE="hidden"
NAME="transmission_entry" VALUE="yes"> no<BR>
or the function:
<SCRIPT LANGUAGE="JavaScript">
<!-- Script Begin
function submitFunction() {
if (document.about_HIV.about_HIV.value == "no"){
document.aboutHIV.transmission_entry.value = "yes"
}
else{
document.aboutHIV.transmission_entry.value = "nil"
}
}
// Script End -->
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="about_HIV" ACTION="../servlet/MyServlet4" METHOD=GET
TARGET="_self">
<P class=question>Would you like information about<BR>
what HIV is and it's affects?</FONT><BR></P>
<INPUT TYPE="radio" NAME="about_HIV" VALUE="yes" CHECKED> yes<BR>
<INPUT TYPE="radio" NAME="about_HIV" VALUE="no"> no<BR>
<INPUT TYPE="hidden" NAME="info_known" VALUE="done">
<INPUT TYPE="hidden" NAME="transmission_entry" VALUE="">
<P><INPUT TYPE="submit" VALUE="submit" onSubmit="submitFunction()">
</FORM>
Thanks folks. D Lampon
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html