473,386 Members | 1,679 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,386 software developers and data experts.

HTML Forms in email

Hi all,
I am sending information in a HTML form via emial, along with the
information is a conformation button that the user can click if they
wish to accept the job. On clicking this message i want another mil to
be sent out, however the button that is integrated in the email isn't
working.

Is this possible?
the code for the action of the form is blow..

<?php
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$message = "<html><body>";
$message .= "<h1> TEST </h1>
";
$message .= "</body></html>";

mail(so*****@local.co.uk, "Complete", "$textfield2, $message", $headers
);
?>

Jul 17 '05 #1
4 1393
i have actually never tried that, but on first look i'd rather use a
form on the web and a link there inside the mail, because you cannot
rely at all on the html capability of the mail clients. they may
convert your mail to text only, may deactivate certain html tags, may
not understand form tags and whatnot

micha

Jul 17 '05 #2
*** ben3003 wrote/escribió (10 Feb 2005 15:52:06 -0800):
the button that is integrated in the email isn't working.

Is this possible?
the code for the action of the form is blow..


I can't see any button in your code... :-?

Whatever the problem is, It's likely that it isn't related to PHP. If you
want to send a form from an e-mail client you need that the client supports
forms. Also, it's a good idea not to use JavaScript since many clientes
disable it for security reasons.
--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--
Jul 17 '05 #3
ben3003 wrote:
Hi all,
I am sending information in a HTML form via emial, along with the
information is a conformation button that the user can click if they
wish to accept the job. On clicking this message i want another mil to
be sent out, however the button that is integrated in the email isn't
working.

Is this possible?
yes - but without seeing (a simplified version of) the source I can't really
comment on why.
the code for the action of the form is blow..

<?php
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$message = "<html><body>";
$message .= "<h1> TEST </h1>
";
$message .= "</body></html>";

mail(so*****@local.co.uk, "Complete", "$textfield2, $message", $headers
);
?>


Right - but you just said the problem was in the the HTNL you sent in the
Email. BTW maybe it's my newsreader, but there should be quotes around the
Email address.

C.
Jul 17 '05 #4
ben3003 wrote:
Hi all,
I am sending information in a HTML form via emial,


Don't bother. Put your form on a web site, and a link to it from the email.

Most current spam filters reject (or mark as SPAM) HTML emails which contain
forms.

HTH,

Pete.
Derby.
Jul 17 '05 #5

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

Similar topics

1
by: sumithradevi | last post by:
Hello Friends, I have two forms(form1 and form2) on my html page. question1 : can i access form 1 variables in form 2?. if so how? question 2: when form2 action is saveci.jsp . can i access...
2
by: Hugo | last post by:
Hi all, Well I don't know if it's possible, but I would like to able to read the content of a html file that I've opened in a new window, but do this from the parent html file. I think that...
12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
8
by: yawnmoth | last post by:
i've seen a few html forms, whose textarea's have text in them, and which reset when you click in that textarea... how can i do this? also, say my form has two different variables (namse, or...
2
by: Beringer | last post by:
Is there a Windows Forms based HTML editor around? I have looked in several sites and they offer Web based editors but I haven't found a forms based one. If your wondering, I was thinking an...
10
by: Logipro | last post by:
Hi, Can it's possible to send a local Web page (HTML) (with pictures) by Outlook, OE, MAPI or Jmail, simply by pass a Html path files ? I try many many tips like replace "cid:" before image in...
7
by: thersitz | last post by:
I can't seem to get my html form to submit properly from within a web form. Here's my form tag syntax and some delivery hidden fields. <form id="myForm"...
4
by: Andrew Taylor | last post by:
I've been struggling for a long time with HTML_Quickform from PEAR. The concept is ideal, but, the implementation is (IMHO) a bit of a kludge. As a developer I want a quick and easy way to...
14
by: jcage | last post by:
Is there any tutorials online for sending email through forms? I can send an email as well as write to my MySQL database from home with the following code but not at work. I think there might be...
6
by: Neekos | last post by:
Im using VBA (in Access) to scrape an internal webpage at work to gather email addresses. The emails are encoded and i need to use this page to decode them. I can get it to return the entire HTML of...
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:
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.