Connecting Tech Pros Worldwide Forums | Help | Site Map

HTML Forms in email

ben3003
Guest
 
Posts: n/a
#1: Jul 17 '05
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(someone@local.co.uk, "Complete", "$textfield2, $message", $headers
);
?>


micha
Guest
 
Posts: n/a
#2: Jul 17 '05

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

micha

Alvaro G Vicario
Guest
 
Posts: n/a
#3: Jul 17 '05

re: HTML Forms in email


*** ben3003 wrote/escribió (10 Feb 2005 15:52:06 -0800):[color=blue]
> the button that is integrated in the email isn't working.
>
> Is this possible?
> the code for the action of the form is blow..[/color]

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
--
Colin McKinnon
Guest
 
Posts: n/a
#4: Jul 17 '05

re: HTML Forms in email


ben3003 wrote:
[color=blue]
> 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?[/color]

yes - but without seeing (a simplified version of) the source I can't really
comment on why.
[color=blue]
> 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(someone@local.co.uk, "Complete", "$textfield2, $message", $headers
> );
> ?>[/color]

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.
PeteC
Guest
 
Posts: n/a
#5: Jul 17 '05

re: HTML Forms in email


ben3003 wrote:[color=blue]
> Hi all,
> I am sending information in a HTML form via emial,[/color]

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.


Closed Thread