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

mod_rewrite.c on windows ??
why it's not working on windows while it's working on other hosts???

this is the code i got

SESSION CHECK WORKS "MOST" of the time... whats going on?
i have a sign in check thats included in every page that is a members only page which is basically a

cURL and Sessions
Ohai.

So, I'm trying to cURL a bunch of things off of a page, and put them into a session. I'

Nested (echoed) php running wrong script
Got a problem with a php website I'm creating.

In a nutshell, the first page is entirely html

Edit MySQL Row Using PHP and HTML Form
Hello,

Here's what I'm trying to do. Build a page where a user enters a MySQL row number in.

Amatuer requiring assistance
Beginner and amateur in need of assistance

My Site - (Spare Parts for Domestic Appliances)

send message to the java application
Oracle 10g with Windows platform.

I have a java application that periodically pings the d

Code error with Index.php
Error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/runevid/public_

please fix the error
What is the error in the below code ???
Line number On/Off | Expand/Contract <?php

CURL question
i am wondering if it's possible to use multi curl with login something like

login once to web

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