Extra fields in main body and php required.


Posted on 16th Feb 2014 07:03 pm by admin

I'm new to PHP so please be gentle. I have a little php script below that works well.
The "$msgVar" goes into the body message of the email. How can I effect additional
fields that can be filled with information that also go into the body of the email in such
a way that they have there own seperate fields of answers with atleast a double space
Did you know?Explore Trending and Topic pages for more stories like this.
between each field that is answered. For example: With thanks. Brian

Answer One:

Answer Two:

Answer Three:


<?
if ($send=="yes") {
$to = "my@address";
$subject = "$subjectVar";
$body .= "$msgVar";
$from = "$nameVar";
$tfrom = "From: <$emailVar>";
mail($to,$subjectVar,$msgVar,$tfrom);
}
echo "&errormessage=Email has been sent&";
?>
No comments posted yet

Your Answer:

Login to answer
339 Like 25 Dislike
Previous forums Next forums
Other forums

RTF fomatting to email content
Im trying to sen an email with content is picked up from a rtf-file (file_get_contents('*.rtf'). Mai

Sendmail.php - heading error following check_input
Hi,

I would greatly appreciate some help? I am brand new to PHP and have been searching and e

Using system() and bringing back the results
I am aware that you can use system() within PHP to execute system commands, but I was wondering if t

Update Myspace status with CURL
Logging in:

Code: <?php

class Myspace
{
function login($username, $pa

sendmail code suddenly not working
Hi Guys, I maintain 3 sites (including my own) I use the following code from a french webmaster that

Add_Months not Easy to Understand
Oracle is number 1, very fast and very easy. But....
OK, I think but have a problem, only 1 pro

How to show next and prev records
Hi all,

Sorry if this is simple, i'm very new to php, well, any programming language actually

Could Someone Please Debug This?
I was wondering if someone could debug this script for me. I realize it's not the tidest script (and

big pagination problem in php
<?php

$connect = mysql_connect("localhost", "root", "")

records between 2 dates
Hello all,

I have a date tracked table which contains effective_start_date and effective

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash