Solved

Combining Static Text and Form Field in Subj line of FrontPage Form

Posted on 2004-08-09
7
206 Views
Last Modified: 2013-12-24
I am using a FrontPage form to send data via email. I would like the subject line to contain both static info -- the name of the form -- and the last name of the person completing the form. If the name of the form is NEMBC2004 and the last name of the applicant is SMITH, then I would want the subject to show "NEMBC2004 - Smith". One of the form fields in the form is "PersInfo_LastName" -- which contains the applicant's last name.

However, the Email Message Header for Subj allows either a form field name or text, but not both. I assumed that I could assign a variable within the hidden field -- say TITLE equals NEMBC2004 and then somehow combine the variable TITLE and PersInfo_LastName into a third field that I could then place in the Subj line. If that is correct, then I need to know the syntax of combining the two fields into a third field.
0
Comment
Question by:jthomashowell
7 Comments
 
LVL 29

Accepted Solution

by:
coreybryant earned 125 total points
Comment Utility
You will need to use Jmail or another form handler.  As far as I know, FP cannot do it.    

-Corey
0
 
LVL 31

Expert Comment

by:seanpowell
Comment Utility
One other option for you:

<input type="text" name="PersInfo_LastName" size="20" onblur="this.value+='- NEMBC2004';">
0
 
LVL 3

Expert Comment

by:wcameron
Comment Utility
This is easy to do if you use CDONTS to send your mail message. There is a tutorial here:

http://www.frontpagemagic.com/Coding/CDONTS/Index.htm

CDONTS is part of IIS and should be available to you if your site is hosted on a Microsoft Server. It is quite easy to use and is more flexible than FP's built-in email form handler. I began with many FP email forms and slowly had to change them over to CDONTS as they suddenly stopped working one by one.
0
 

Author Comment

by:jthomashowell
Comment Utility
Thank you for your comments and suggestions. Unfortunately, I am not ready to learn JMAIL or CDONTS, but have them on my "to do list." And unfortunately, I couldn't seem to get the Javascript code to work, but if it did work, would only change the existing PersInfo_LastName field -- I needed a third field to combine PersInfo_LastName and another field (probably a hidden field that would equal ""-NEMBC2004". I had looked through all the Frontpage questions in the Exerts-Exchange database and none of them seem to work, so perhaps Corey is right after all -- FT can't do it.
0
 
LVL 29

Expert Comment

by:coreybryant
Comment Utility
JMail is very easy :) - if I can do it - you can do it.   If your server supports it - let me know & I can give you some sample coding.

-Corey
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now