Forum Moderators: mack
Any suggestions - I am not a php programmer, but am willing to give anything a try.
Thanks in advance.
[edited by: RegH at 8:06 pm (utc) on Mar. 21, 2008]
$subject = "Subject: " . $_POST['formfield1' . $_POST['formfield2'];
// rest of the message and whatever else you want to include in the email goes here.
if (mail($to,$subject,$message,$headers)) {
echo "Message Sent!"; // success
hope that helps
:)
Your answer is very clear and I think I can make it work, but my skills are really weak.
I am using this bit of code to post the form.
<form action="formmail/formmail.php" method="post" enctype="multipart/form-data" id="FrontPage_Form2">
Is it in these brackets that I should use your suggestion.
Thanks a lot for your help
Here is the code
<form action="formmail/formmail.php" method="post" enctype="multipart/form-data" id="FrontPage_Form2">
<table width="100%" border="0" align="center" cellpadding="10" cellspacing="0">
<tr>
<td width="50%" valign="top"><font face="Arial, Helvetica, sans-serif" size="2" color="#333366"> <font face="Arial" size="2">
<input name="billme" type="radio" value="Trial Subscription" checked />
<span class="bodycopy">OK - Send </span></font></font><span class="bodycopy"><font face="Arial" size="2" color="#333366">me
a</font><font face="Arial, Helvetica, sans-serif" size="2" color="#333366">
complimentary issue of </font> </span><span class="bodycopy"><font face="Arial" size="2"><font face="Arial" size="2">the
newsletter. If I like
it, then I will be billed $290</font></font></span><span class="bodycopy"><font face="Arial" size="2"><font face="Arial" size="2"> for
an annual subscription. (12 issues)</font></font></span><font face="Arial" size="2"><font face="Arial" size="2"><br />
</font></font></td>
<td width="50%" valign="top"><font face="Arial, Helvetica, sans-serif" size="2" color="#333366">
<font face="Arial" size="2">
<input type="radio" name="billme" value="$290" />
<span class="bodycopy">Bill me for $</span>290</font> (or I will
pay securely below with a CC) </font></td>
</tr>
</table>
And here is the field currently in use for the subject field.
<input type="hidden" name="subject" value="Biometric Digest" />
I didn't write the original code, so I am having to learn everything at once. That being said I hope you have enough info.
Thanks
Unless your process script is on the same file.
Your best bet is to have a read of this topic -
[webmasterworld.com...]
:)