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

  • Home
  • SEARCH
  • 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 6688437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:24:16+00:00 2026-05-26T05:24:16+00:00

I have a little experience in php and I am making a website for

  • 0

I have a little experience in php and I am making a website for my client who needs contact form in their website. The question that i am about to ask is difficult, but your suggesitions are valuable.

I have a PHPcontact form(got from net),it is working perfectly. The question is my client wants to add extra datas into the comment/description section in the contact/feedback form which will be not visible to the person who sends the messages.

Example:
contact form is like this

     Name:kevin
     Email:example@gmail.com
     Comment:This is  an exmaple comment

when this message will reach to my clients email it should be like this

     from:example@gmail.com
     subject: feedback from customer
     Comment: This is an example comment.


      Please forward this mail to .....section and contact to .....
      phone no:0000000000
      email: exampele@example.com 
      OR
      code:4540560ndjdjdd ( a serialnumber generated from an external php file)

if you know how to do this please explain it.

  • 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-05-26T05:24:16+00:00Added an answer on May 26, 2026 at 5:24 am

    You should get the value from the form, put it on the php mail + your new values/hidden value
    So, the user will not see it like:

     from:example@gmail.com
     subject: feedback from customer
     Comment: This is an example comment.
    
    
     Please forward this mail to .....section and contact to .....
     phone no:0000000000
     email: exampele@example.com 
     OR
     code:4540560ndjdjdd ( a serialnumber generated from an external php file)
    
    <?php
    $msg = "from:$_POST['email']
            subject:$_POST['subject']
            Comment:$_POST['comment']
    
    
            Please forward this mail to .....section and contact to .....
            phone no:$phone_number
            email: $myemail
            OR
            code:$generated_code ( a serialnumber generated from an external php file)";
    ?>
    

    Now you just need use mail() to send the value of $msg using POST details + your ‘hidden’ details.

    If you want hidden in the form just use hidden attribute.

    Try to explain your question better, would help a lot.

    (in the $msg, if line break won’t work try \n or br)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have little programming experience so the jump from basic php to using classes,
I have inherited some PHP code (but I've little PHP experience) and can't find
I am a PHP developer with little Oracle experience who is tasked to work
I've been using python for years, but I have little experience with python web
I need MatLab for 2D and 3D modeling. I have little experience in MatLab.
I have very little experience building software for Windows, and zero experience using the
I have a little experience developing small command-line applications with Python. I want to
I have very little experience with ASP.NET and I am doing some self-training before
I have a little experience with WCF and would like to get your opinion/suggestion
I have very little experience working with sockets and multithreaded programming so to learn

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.