Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9021479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:15:55+00:00 2026-06-16T05:15:55+00:00

I am a complete PHP newbie and I have a specific question that might

  • 0

I am a complete PHP newbie and I have a specific question that might seem dumb. However, I cannot seem to locate an answer (likely because I don’t know the best search terms). I am building a sendmail script and I want to add text in front of the items I have pulled from the DB.
IE:
First Name:
Middle Name:
Last Name:

$message = $_POST['fname']."\n".$_POST['mname']."\n".$_POST['lname']."\n".$_POST['role']."\n".$_POST['facility']."\n".$_POST['specialty']."\n".$_POST['level']."\n".$_POST['email'];
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:15:56+00:00Added an answer on June 16, 2026 at 5:15 am

    First of all, go and read some basic PHP book. Don’t consider that watching video lesson or reading few articles will be enough.

    Second of all, understand what you are trying to do. $_POST is a global array, containing all data, sent to server by client via POST method.

    I don’t completely understand, what you are trying to achieve, but try this one:

    $message = 'First name: ' . $_POST['fname'] . "\n Middle name: ".$_POST['mname']. 'etc....';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Complete PHP newbie question here, I'm trying to load up locally a dynamic PHP
I am newbie to php.I have coded auto-complete text box using php,and i have
I am a complete newbie to php curl . Can anyone tell me where
Similar title but different question to       Eclipse PHP IDE - custom auto complete
I am a complete database newbie. So far, I know that I can connect
I'm a complete newbie to Objective-C, coming from a background of PHP, assorted dialects
I'm pretty much a complete newbie to PHP. My background is C/C++ and C#.
I have a 4 step form process. form.php validation.php review.php complete.php Form.php posts to
I am a complete newbie to Perl, with PHP coding experience and I put
This page says Zend Server Community Edition installs a Complete PHP Stack that includes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.