HTML Forms in email

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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

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

$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(, "Complete", "$textfield2, $message", $headers

Re: HTML Forms in email

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


Re: HTML Forms in email

*** ben3003 wrote/escribió (10 Feb 2005 15:52:06 -0800):
Quoted text here. Click to load it

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

Re: HTML Forms in email

ben3003 wrote:

Quoted text here. Click to load it

yes - but without seeing (a simplified version of) the source I can't really
comment on why.

Quoted text here. Click to load it

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.


Re: HTML Forms in email

ben3003 wrote:
Quoted text here. Click to load it

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



Site Timeline