Solved

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

Posted on 2004-08-09
7
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 29

Accepted Solution

by:
coreybryant earned 125 total points
ID: 11751481
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
ID: 11753681
One other option for you:

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

Expert Comment

by:wcameron
ID: 11763005
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
ID: 11774017
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
ID: 11774085
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 is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. 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 : Go t…

751 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