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 8101011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:52:51+00:00 2026-06-05T22:52:51+00:00

Using PHP, I am making an application similar to an online concierge service. I

  • 0

Using PHP, I am making an application similar to an online concierge service. I have a page displaying a form asking the user what he would like me to do. When the user completes the form, the information is saved into a database and also the user is sent an email saying: “Thank you for recently submitting: (whatever he just submitted).” The user will (hopefully) be submitting this same form many times each month.

I would like to have the user have the ability to reply to my automated email with new information, and then that new information update the correct database record.

Problem: How do I get that new information to update the correct database record?

For example, lets say User ‘John’ submits that form twice today. First he requests me to make him dinner reservations at Chili’s, and second he requests me to book him some airline tickets to NYC. John would receive 2 emails from the site thanking him for his requests. Lets say later today John changes his mind and decides he wants to go to Applebees instead. I would like him to be able to reply to the FIRST email stating his change. I would then like that information appended to the correct record in the Database. How do I make a connection between the information in the Database record and the email?

I was thinking as a possible solution I could include the Database’s record ID number in the subject line of the email, like: “Thank you for your recent request #428.” and then I could grab that number 428 and update record number 428 in the database. But I think this might confuse the user if he sees this number popping up out of no where.

I am looking for something similar to using a hidden input like you can do in Form’s and processing POST data.

BTW: I am using CakePHP 2.1.x and am downloading my emails using IMAP. But the answer is probably not CakePHP specific.

Any suggestions? Thanks!

  • 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-05T22:52:53+00:00Added an answer on June 5, 2026 at 10:52 pm

    This is the usual way of doing it. It’s often coupled with unique Reply-To and Sender addresses to add even more security and make it possible to track bounces.

    It’s pretty safe (why would anybody change the subject line?) but you should still make sure that only the correct sender address can do amendments, otherwise malicious users can just change the number and post stuff to whatever tickets they like.

    It’s easy for the user. The thing I would change is the wording of the subject, for two reasons:

    1. The request number is a technical number and should not be part of a sentence (in my opinion).
    2. If you are able to create a more telling subject line so that users can see which of the two mails are for which type of service, it would be much easier for the user to find and answer to the correct one of the two. Even if it’s just a very generic category name that distinguishes them it may prove useful to many users.

    With this in mind, a great subject line could be:

    Dinner booking request – Automatic confirmation (#428)

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

Sidebar

Related Questions

I'm making a web application using PHP in where I have a form that
I am making a web application using php, and I would like to implement
I'm making a PHP backend for my application using REST API. I would like
Using Php I would like to extract the current Url of a page including
I am making a PHP web Application in which i am using MySQL as
I have a web application using PHP and PDO with SQLSRV prepared statements to
I am in the process of making a PHP web application. I have a
I want to create an application using php and mysql. Assume i am making
I'm making a little web application using PHP and JavaScript and I've come to
I am developing an application using PHP in Aptana Studio 3, and have set

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.