473,385 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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?subject=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>Retail - (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"value=""cols="45"size="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 32672
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?subject=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********@attbi.com (Susan) wrote in message news:<df**************************@posting.google. 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?subject=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>Retail - (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"value=""cols="45"size="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********@attbi.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?subject=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*****@protctorandgamble.com> wrote in message news:<MP************************@news-server.austin.rr.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*****@protctorandgamble.com> wrote in message
news:<MP************************@news-server.austin.rr.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
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...
2
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...
5
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
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...
8
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....
2
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...
0
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 ...
1
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...

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.