How can I add session variables for the subject field and the body of the e-mail Message?
How can I add session variables for the subject field and the body of the e-mail Message? Tried several combinations, but do not seem to correct the syntax.
This is the code I have. I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.
$à = « à : ». $_SESSION ["toemail"];
$subject = '$firstname $lastname, your registration details ';
$from = "from: [email protected]"; "
$msg = "Dear $title $firstname $lastname\r\n\nThank for the registration for the design of your dream Home.\r\nWe have received this following details details of you-\r\n\nClient-\r\n\nOccupation: $occupation \r\nPhone No.: $phone \r\nE-mail: $email\r\n\nPresent $ location: \r\n location\r\n\nPresent address: \r\n$ address\r\n\n\nFollowing are specified by you - design requirements \r\n\nBasic Features\r\n\nNo." floors: $floors\r\nNo. of bedrooms: bedrooms\r\nNo of $. of bathrooms: $bathrooms\r\nFloor region: $sqft\r\n\nFurther Suggestions: $ Plan\r\n\nSplit one further\r\n\n\nType floor: $splitfloor\r\n-remarks: $splitfloorremarks\r\nOpen floor: $openfloor\r\n-remarks: $openfloorremarks\r\n\n\nList of the rooms to be Included\r\n\nFoyer: $foyer\r\n-remarks: $foyerremarks\r\nDrawing: $drawing\r\n-remarks: $ alive drawingremarks\r\nFormal: $formalliving\r\n-comments : $ alive formallivingremarks\r\nFamily: $familyliving\r\n-remarks: $familylivingremarks\r\nHome Office: $homeoffice\r\n-remarks: $homeofficeremarks\r\nDining: $dining\r\n-remarks: $diningremarks\r\nMaster room: $master\r\n-remarks: $masterremarks\r\nMaster bathroom: $masterbath\r\n-remarks: $masterbathremarks\r\nMaster Dressing: $masterdress\r\n-remarks: $masterdressremarks\r\nBedroom: $bed\r\n-remarks: $bedremarks\r\nBathroom: $bath\r\n-remarks: $bathremarks\r\nDress: $dress\r\n-comments : $dressremarks\r\nStudy: $study\r\n-remarks: $studyremarks\r\nLibrary: $library\r\n-remarks: $libraryremarks\r\nPowder room: $powder\r\n-remarks: $powderremarks\r\nPrayer room: $prayer\r\n-remarks: $prayerremarks\r\nKitchen: $kitchen\r\n-remarks: $kitchenremarks\r\nPantry: $pantry\r\n-remarks: $pantryremarks\r\nUtility/area of work: $utility\r\n-remarks: $utilityremarks\r\nBalcony: $balcony\r\n-remarks: $balconyremarks\r\nStore: $store\r\n-remarks: $storeremarks\r\nLaundry : $laundry\r\n-remarks: $laundryremarks\r\nVeranda: $veranda\r\n-remarks: $verandaremarks\r\nCar porch: $carporch\r\n-remarks: $carporchremarks\r\nGarage: $garage\r\n-remarks: Theater garageremarks\r\nHome $: $theater\r\n-remarks: room of $theaterremarks\r\nMaid: $maid\r\n-remarks: $maidremarks\r\n\nOther general remarks: $general\r\n\nPlease note that the fields have been left blank in your form will be considered undecided details and used in discretion.\r\nIf of the architect , it better to add more later, design requirements please feel free to reply to this email with the details. « ;
$fla = mail ($to, $subject, $msg, $from);
Thanks in advance!
askintrades wrote:
How can I add session variables for the subject field and the body of the e-mail Message?
What you want to do? Given the nature of your question, it seems that you probably don't know what a session variable is used. The PHP manual describes the purpose of sessions here: http://docs.php.net/manual/en/intro.session.php.
I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.
$à = « à : ». $_SESSION ["toemail"];
Why do you need to change the form variables in session variables? They are already stored in session variables, or they come directly from the form?
The $to part is not supported. When you pass $to to the mail() function, it should contain only an e-mail address, not a string that begins with "to:
Tags: Dreamweaver
Similar Questions
-
How can I add a widget for the dashboard widget in Muse
How can I add a widget for the dashboard widget in Muse? Please include steps.
Only of the native widgets Muse go to the widgets Panel. For your own or 3rd party widgets are stored in your library panel. If you save your own just right click the element or widget on your page of muse. In options, select Save in the library.
-
How can I add a destination for the "send to folder" in Windows 7?
How can I add a file to SEND TO th
Windows 7 >
Put a shortcut to the destination of this folder:
\AppData\Roaming\Microsoft\Windows\SendTo C:\Users\{Your user name}
-
How can I add photo credit for the images used on a blog site?
I want to use Adobe stock images on a blog site I've created. By reading the news, I think I need to add a photo credit. I must add a credit to each image used or I can have a note at the bottom of each page listing the credit? The format should be copyright, photographer /Adobe Photo Stock or something else?
Thank you
Hello
Please see the frequently asked questions, Adobe Stock
You can also see How to properly credit a stock Adobe image
Hope that helps!
Kind regards
Sheena
-
I would like to a tile on the homescreen of Facebook and Twitter (I don't see an APP for either). I can do this and if so, how?
How can I add a device to the peripheral icon on the right side?
Dear NelliBli46,
Welcome to the Microsoft community!
Question 1: For Facebook and Twitter tile question.
You can get your Facebook account and Twitter RSS directly on your screen to start using applications Photos and people.
These links help you to configure the applications.
For the Photos App:
http://Windows.Microsoft.com/en-us/Windows-8/photos-app-FAQ
For the purposes of people:
http://Windows.Microsoft.com/en-us/Windows-8/people-FAQ
Question 2: To add a device to the peripheral icon.
You can use this link to add devices to your computer
http://Windows.Microsoft.com/en-us/Windows-8/Add-device-or-PC-to-network
Once you add a device, under devices in the charms bar you will see what options or devices are available according to the open app or window.
If you still have questions, feel free to contact us. -
How can I add my ID for a website to remember password?
On sites that you have enter your ID user first and then take you to a second page to enter the password, Firefox remembers only the password but not the user ID. How can I add my ID for passwords remembers when I forget for a site? +
You can use the saved password Editor to add username information if Firefox currently has not done that.
- Saved password Editor: https://addons.mozilla.org/firefox/addon/saved-password-editor/
-
How can I add a Word to the lexicon? that is, how to stop my e-mail name AutoCorrect?
Greetings bonbog,
You can add words to the spelling on your Mac dictionary. See this help page - check spelling and Grammar - Help Mac
Specifically -.
Add words to the spelling dictionary: Control-click on a Word, then choose memorize spelling. The Word will not be marked as spelled in any document. To have the word marked as wrong spelled once again, the control key in a document, then choose unlearn spelling.
Thank you for using communities of Apple Support.
Be well.
-
How can I add my laptop to the network and connect to the internet as well
I have internet access on my computer at home, the ipod, the ipad and iphone. How can I add my laptop to the network and connect to the internet as well?
Hello
I suggest you to refer to the following Microsoft article and check if it helps.
Add a device or computer to a network:
http://Windows.Microsoft.com/en-us/Windows-Vista/add-a-device-or-computer-to-a-network
For more information, see the following Microsoft article.
http://Windows.Microsoft.com/en-us/Windows-Vista/setting-up-a-home-network
http://Windows.Microsoft.com/en-us/Windows-Vista/what-you-need-to-set-up-a-home-network
http://Windows.Microsoft.com/en-us/Windows/explore/home-networking
Hope the information is useful.
-
How can I add a link using the adobe reader software?
How can I add a link using the adobe reader software?
Hi johnny05,
This isn't something you can do with Adobe Reader. To edit a PDF file, including adding a link, you must use Acrobat. We invite you to try Acrobat DC for 30 days; You can download a trial of this page: Download Adobe Acrobat free trial version | Acrobat Pro DC.
Best,
Sara
-
How can I add a signature at the bottom of a photo?
How can I add a signature at the bottom of the photo?
I created a signature, but it focuses on photography and I need to sign my pictures with the small area at the bottom right of my pictures just professionally. Help!
Hello, welcome to the forums! the simplest is to use the watermark Panel Russell Brown did: scroll down or search for watermark on http://www.russellbrown.com/scripts.html
There is a script and a video that explains how to use it.
If you want to do it yourself, fund an action where you will use the layer > align >... Menu entries to place your signature where you want.
I hope this helps!
-
How can I apply an opacity for the blending mode Script value?
Hello
How can I apply an opacity for the blending mode Script value?
Is this something like?
theLayer.blendingMode = BlendingMode.SOFT_LIGHT; Add blendingMode with opacity for selected layers
var opacity41 = opacity
Thank you
It seems that you have the right merge mode part. The other part of your question how to set the opacity of the layer value?
It is like this:
theLayer.property("Opacity").setValue (41);
Dan
-
How can I add a device of the anther
How can I add a device of the anther
Hello
"If you paired with your Apple Watch but who want to use it with another iPhone, you can transfer your Apple Watch and its contents to your new iPhone.
Instructions here > set up your Apple Watch
-
How can I add applications imessage for my macbook pro?
How can I add application imessage for my macbook pro? is it possible to download an app so I can set up my phone to my computer?
What OS X running on Mac? Messages is an application based on OS X Lion mountain and later.
See you soon,.
GB
-
How can I add Hulu Plus for my media center menu?
Windows media player
How can I add Hulu Plus for my media center menu?
Hello mjcraner,
I suggest watching this thread, because it is similar to your request: -
How can I recover my pc for the first time that I bought?
Hello
How can I recover my pc for the first time that I bought? because my pc is so slow... I have a compaq laptop cq61... and I want to set up the first time... How can I? I don't have a recovery disk because when I bought it dosnt have a recovery in it disc. Please help me. Thank youHello
I'm happy to help you
Glancing at the screen shot you posted, your looks of partition fine recovery (recovery (D).
Save your files on an external hard drive or flash drive (depending on how many you have).
Once that is done, disconnect all connected to your PC, but the AC adapter.
Start the PC and the HP welcome screen, press the F11 key to start the Recovery dialog box and follow the prompts.
It should take 15 to 30 minutes and your PC needs to be restored to its factory settings.
Then just reinstall all programs and files that does not come with the PC.
You will need the files or the installation of program diskettes. You cannot back up installed programs and reinstall them using a backup.
Paul
Maybe you are looking for
-
Card slot problem Satellite P200D-12z - driver need card reader - SD
Cannot find the suitable for my laptop card reader driver. Please help find!Toshiba Satellite P200d-12z (bought in Sweden) I tried to istall software drivers on the official website of Toshiba: -Flash Cards Support utility-Flash Media DriverUtilities
-
I get a popup to firewall this tells me Internet Explorer tent to access internet I click on allow but get no results. Then I get this page can not be displayed, and you are not logged as an administrator
-
I tried to get out of the tabs and the computer won't let me she telling me this data execution prevention
-
BlackBerry Z10 Facebook does not work
Hello.My facebook is not working, I made the disconnection to try to access another account and then tried to connect because a few times, but it shows me an error try many times and now when I open the app it does not work, all simply appear to try
-
trying to erase the ECC errors
I have a server whose health LED is orange, and UCSM shows a F1237:Description: Health LED to the 7/1 displays error server. Reason: DDR4_P1_A1_ECC:Sensor threshold crossed. DDR4_P1_A2_ECC:sensor threshold crossed Last Transition for this anomaly is