adding form entries to serve as e-mail subject heading

1

1 Just Jeff

Hi,

In using FP2000, I am able to set a form entry to be the subject of the
e-mail sent to me and am also able to set a form entry as the return address
when I reply to the forum submission.

I would like to know if there is a way to group several form entries into
forming the subject of the e-mail that is sent upon completion of the form?
For example,

I would like the subject heading for a specific form to be "Test #2 PHY 221
I01 John Doe". Presenlty I have the form entry set with "Test #2 PHY 221 I0"
where the student is asked to provide the rest of the section (class)
umber - the I01 or perhaps I02 or I03 and then add their names.

Seems a simple enough request, but many screw it up. So I would like to
break it into parts

for exmaple

Form Entry T1 "Test #2 PHY 221" which I would preset for this
specific form

Form Entry R1, R2, R3 "I01" or "I02" or "I03" which would be chosen
in another form entry using radio buttons

Form Entry T2 "John Doe" and last a form text entry for their
name.

Then I would like the subject heading to be the sum - so to speak - of the
above three form entries. Any suggestions?

thanks,
Jjeff
 
J

Jim Buyens

-----Original Message-----
Hi,
Howdy.

I would like to know if there is a way to group several
form entries into forming the subject of the e-mail that
is sent upon completion of the form?

Try this:

<form name="form1" method="POST">
<script>
function bldSubj(){
form1.subject.value = "Test #2 PHY 221" + " " +
form1.section.value + " " +
form1.stuname.value;
}
</script>
<p>Class Section:<br><input type="text" name="section"
size="20" onchange="bldSubj();"></p>
<p>Student Name:<br><input type="text" name="stuname"
size="20" onchange="bldSubj();"></p>
<p>Subject:<br><input type="text" name="subject"
size="50"></p>
<p><input type="submit" value="Submit"
name="btnSub"></p>
</form>

The onchange attributes on the section and stuname tags
cause the function bldSubj to run every time the visitor
updates those fields. The bldSubj function assembles the
subject line you want.

Once you get this working, you can change the subject tag
to a hidden form field, as in

<input type="hidden" name="subject">

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) ||
|/----------------------------------------------------\|
*------------------------------------------------------*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top