473,748 Members | 5,232 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Email Form - post field as Subject

Is there any way to take one of the fields from the form and use that
as your subject line.. right now I have a default subject line entered
- but would rather have the subject be the information the user has
typed into the field "store"

current code:

<!-- Start of FORM -->
<form method="POST" action="mailto: ab*@abc.com?sub ject=ABC Request"
enctype="text/plain">
<font size="5" face="Verdana"> <b><center><sup >Dispatch Request
for</sup> <img src="logo.gif" width="197" height="60" alt=""
border="0" align=""></center></b></font>
<font size="2" face="Verdana"> <center><b>Reta il - (Inventory Customer
Number 59165)</b></center></font></center></font>
<br>

then further in the form I have a field "Store" that looks like:

<tr><!-- Row 6 -->
<td><font size="2" face="Verdana"> <b>Store</b></font></td>
<td><input type="text"
name="Store"val ue=""cols="45"s ize="45"></td>
</tr>

this is the field I want as the subject matter of my email..

thank you for the help..
Jul 20 '05 #1
6 32696
In message <df************ **************@ posting.google. com> on Monday
June 30 2003 00:02, Susan wrote:
Is there any way to take one of the fields from the form and use that
as your subject line.. right now I have a default subject line entered
- but would rather have the subject be the information the user has
typed into the field "store"
There is, if you're using a CGI program on the server which includes the
ability to do so.
current code:

<!-- Start of FORM -->
<form method="POST" action="mailto: ab*@abc.com?sub ject=ABC Request"
enctype="text/plain">


What this form does is undefined according to the HTML 4.01
recommendation. You need to use the URL of a server-side CGI program in
order to make this work reliably. You have quite possibly lost many
submitted forms without even knowing it.

--
Shawn K. Quinn
Jul 20 '05 #2
The below has been working successfully for me - with confirmation
emails sent back to the user - is there a way that the user can type
in the subject then ?

thanks, Susan

su********@attb i.com (Susan) wrote in message news:<df******* *************** ****@posting.go ogle.com>...
Is there any way to take one of the fields from the form and use that
as your subject line.. right now I have a default subject line entered
- but would rather have the subject be the information the user has
typed into the field "store"

current code:

<!-- Start of FORM -->
<form method="POST" action="mailto: ab*@abc.com?sub ject=ABC Request"
enctype="text/plain">
<font size="5" face="Verdana"> <b><center><sup >Dispatch Request
for</sup> <img src="logo.gif" width="197" height="60" alt=""
border="0" align=""></center></b></font>
<font size="2" face="Verdana"> <center><b>Reta il - (Inventory Customer
Number 59165)</b></center></font></center></font>
<br>

then further in the form I have a field "Store" that looks like:

<tr><!-- Row 6 -->
<td><font size="2" face="Verdana"> <b>Store</b></font></td>
<td><input type="text"
name="Store"val ue=""cols="45"s ize="45"></td>
</tr>

this is the field I want as the subject matter of my email..

thank you for the help..

Jul 20 '05 #3
Tim
On 30 Jun 2003 17:48:57 -0700,
su********@attb i.com (Susan) wrote:
The below has been working successfully for me - with confirmation
emails sent back to the user - is there a way that the user can type
in the subject then ?

<form method="POST" action="mailto: ab*@abc.com?sub ject=ABC Request" enctype="text/plain">


You're only noticing the successful ones, you won't ever get to find out
about the ones that fail. Using "mailto:" in a form action is
non-standard, with no defined behaviour (it won't, and doesn't, work for
all clients).

The solution, to both your problems, is to send to a script which
e-mails results (if you want them as e-mails), and has another text
entry gadget for participants to write in a subject line (though many
will not bother to do so - so you could pre-load it with something
useful to you).

i.e. Send data to the script, let the script send output to wherever you
need it.

--
My "from" address is totally fake. (Hint: If I wanted e-mails from
complete strangers, I'd have put a real one, there.) Reply to usenet
postings in the same place as you read the message you're replying to.
Jul 20 '05 #4
In article <df************ **************@ posting.google. com>, susanf9999
@attbi.com says...
The below has been working successfully for me - with confirmation
emails sent back to the user - is there a way that the user can type
in the subject then ?

If it is working for you and you want the user to type in a subject,
use javascript to submit the form and modify the URL using javascript
by reading the subject's input.
Jul 20 '05 #5
thank you - the javascript worked for me..

Mr. Clean <mr*****@protct orandgamble.com > wrote in message news:<MP******* *************** **@news-server.austin.r r.com>...
In article <df************ **************@ posting.google. com>, susanf9999
@attbi.com says...
The below has been working successfully for me - with confirmation
emails sent back to the user - is there a way that the user can type
in the subject then ?

If it is working for you and you want the user to type in a subject,
use javascript to submit the form and modify the URL using javascript
by reading the subject's input.

Jul 20 '05 #6
[quoting reordered]

In message <df************ **************@ posting.google. com> on
Wednesday July 2 2003 23:27, Susan wrote:
Mr. Clean <mr*****@protct orandgamble.com > wrote in message
news:<MP******* *************** **@news-server.austin.r r.com>...
In article <df************ **************@ posting.google. com>,
susanf9999 @attbi.com says...
> The below has been working successfully for me - with confirmation
> emails sent back to the user - is there a way that the user can
> type in the subject then ?
>

If it is working for you and you want the user to type in a subject,
use javascript to submit the form and modify the URL using javascript
by reading the subject's input.


thank you - the javascript worked for me..


Obviously you did not test with Javascript disabled. This is poor
practice for reasons that have been covered many times over.

--
Shawn K. Quinn
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3732
by: | last post by:
Hi everyone, I'm using VS.NET, Framework 1.1, Windows 2000 Server, IIS 5, all the latest patches are installed. Im having this wierd random problem, that I cannot reproduce but it happens quite often: - my Request.Form collection is truncated in some posts (again I dont know why or how to reproduce it).
2
6113
by: Eric Peterson | last post by:
I need to pop up the send email form from Outlook. I also need to populate the to field, but obviously the user will type the message and hit 'SEND'. How can I do this? I've been through various examples, and they're all about automating email within vb, I only want to automate 1/2 the process. Thanks for help. Eric
5
3442
by: Gaby | last post by:
I made this form with a very basic code <HTML> <HEAD> <TITLE>Submit Papers</TITLE> </HEAD> <BODY> <% If Len(Request.Form("txtEmail")) > 0 then
1
1685
by: KerryK | last post by:
Hi all: I need some help to create an email form that students can submit to register for a seminar. Basically all I want the student to do is to click a submit button but what has to come up for me is the name of the seminar they are registering for, their name and email address. My problem is that all the seminars are listed in a table and I am assuming I'll have to create multiple forms to go with each seminar. What's the best way to do...
8
4485
by: alice | last post by:
I found this code for making a php email form for a web site. It works fine on my ISP, but not on my friends...could it be that my ISP uses php5, I know that hers does not, so I assume it's php4. Is there anyway to tell? Here's the code. It sends me email fine, but when it's on her ISP, it says it sent the mail, but nothing goes through. <?php if (isset($submit)) { switch ($recipient) { case "whole-family":
2
5182
by: snowweb | last post by:
Hi, This is my first flash project! It would be great if someone could help me please. I have purchased a flash template which I have made some alterations to. My biggest alteration is that of adding a contact form to it. I am comfortable with PHP, so have done the server side code in PHP. but I can't seem to get the button on my form to trigger my code. I've studied many tutorials about this, but none of them are close enough to my own...
0
5383
by: jibysubhash | last post by:
hi all i have got a php code which sends attachments via mail..... Please help me how to send the file parameters to the php via http service send method.... i am placing the php and flex codes here please help Sad PHP code <?php $to = 'somemail@mail.com'; $from = $_POST; $name = $_POST;
1
1837
by: sld87 | last post by:
Hi guys, (Newbie member here!) Having some serious difficulty getting our php email system working after implementing an image captcha to stop the hundreds of bots spamming it. I may as well post the src first: Subscription Form: <form action="newsletter.php" method="post" enctype="multipart/form-data" name="form" id="form"> <label>Your Email Address:
3
2825
by: jennifer6601 | last post by:
Hello. I am new to this forum as well as to ASP and need some help with a simple email form for a website I've developed. I have a simple html email form that is processed with an ASP script using the POST method, that should redirect to an html thank you page upon successful submission of the form. All three pages currently reside on a server and the site is live, so I am accessing the form from the live website to test it. The ASP script...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9325
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8244
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.