>-----Original Message-----
>Hi,
Howdy.
>Win98
>FP2000
>
>In using forms to give on-line tests, I wanted to join 3
>fields together to serve as the subject of the e-mail
>being sent to me. I was given advice by Jim Buyens and
>have tried to implement his suggestions - but I seem to
>be missing something - it is more than likely my
>understanding.
It makes a difference that one of the form elements is a
set of radio buttons. Also, you forgot the hidden form
field that holds the joined result.
Try this:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>fftest</title>
</head>
<form name="form1" method="POST" name="FrontPage_Form1"
action="--WEBBOT-SELF--" onsubmit="return
FrontPage_Form1_Validator(this)">
<!--webbot bot="SaveResults" u-file="fftest_data.html"
s-format="HTML/BR" s-label-fields="TRUE" b-reverse-
chronology="FALSE" s-email-format="HTML/BR" s-email-
address="(E-Mail Removed)" b-email-label-
fields="TRUE" b-email-replyto-from-field="TRUE" s-email-
replyto="Email" b-email-subject-from-field="TRUE" s-email-
subject="subject" s-date-format="%A, %B %d, %Y" s-time-
format="%I:%M:%S %p" s-builtin-fields="Date Time" -->
<script>
function bldSubj(){
sect = "";
for (pos = 0; pos < 3; pos++) {
if (form1.section[pos].checked) {
sect = form1.section[pos].value;
}
}
form1.subject.value = "Test #2 PHY 221" + " " +
sect + " " +
form1.name.value;
form1.submit();
}
</script>
<input type="hidden" name="subject" value="">
<p>Test #1 PHY 221</p>
<p>Section Number<br>
<input type="radio" value="I01" name="section"> I01
<input type="radio" value="I02" name="section"> I02
<input type="radio" value="I03" name="section"> I03</p>
<p>Name<br>
<input type="text" name="name"></p>
<p>E-mail<br>
<input type="text" name="Email"></p>
<p><input type="button" value="Submit Test"
name="btnSub" onclick="bldSubj();"></p>
</form>
</body>
</html>
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*========----------
|\=========------------
|| Microsoft Office FrontPage 2003 Inside Out
|| Microsoft FrontPage Version 2002 Inside Out
|| Web Database Development Step by Step .NET Edition
|| Troubleshooting Microsoft FrontPage 2002
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/=========------------
*========----------