PC Review


Reply
Thread Tools Rate Thread

adding form entries to serve as e-mail subject heading

 
 
1 Just Jeff
Guest
Posts: n/a
 
      2nd Nov 2003
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


 
Reply With Quote
 
 
 
 
Jim Buyens
Guest
Posts: n/a
 
      2nd Nov 2003
>-----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) ||
|/----------------------------------------------------\|
*------------------------------------------------------*

 
Reply With Quote
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding multiple entries to a form sarahz11 Microsoft Access 3 12th Nov 2009 08:27 PM
I am adding the Heading 1 style to a numbered paragraph to use Heading 1... ~D~ Microsoft Word New Users 2 23rd Jan 2005 05:49 AM
adding subject line to e-mail template marcus Microsoft Outlook 0 22nd Dec 2003 03:17 PM
adding form fields to get subject heading of email 1 Just Jeff Microsoft Frontpage 5 17th Nov 2003 08:05 PM
Email Subject heading Derived from Form text field Value/s Peter Allanach Microsoft Access Forms 2 1st Jul 2003 06:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:23 AM.