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

Do While statement
hi guys,

This may sound trivial but im new to php and as part of an assignmenti have to const

Multipe Dynamic Controls & AutoPostback Issue
I currently have a need to create many dynamic controls (Example Textboxes) that need to do a PostBa

Solution Manager BPR
Does the SolMan-BPR-ARIS-Integration (http://www.ids-scheer.com/en/ARIS/ARIS_Platform/ARIS_Business_

Beginner question regarding Array's
Hi everyone, the page im working on has an array of variable at the top...

Code: $define_li

Batch update record with Pagination
Hoping someone can help me with this issue I'm having, im trying to batch update records from a resu

Query issues
I probably have this setup wrong well I know I do because nothing is showing up now. What I want is

Set Categories
I am creating a submission form for somebody to come in and submit products. These products are sep

user data not transferring to new page
I'm a PHP learner. After an index.php page, the user goes to a login.php page. Both pages seem to

question about n
I was looking at some of the things you could do with php and one of the things I have tried is n.<

links using header()
Hi All

I'm not sure where to ask for help on this but I hope someone can offer some. I'm at

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