Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to identify correct email to update proper database record?
    primarykey
    data
    text
    <p>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.</p> <p>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.</p> <p><strong>Problem: How do I get that new information to update the correct database record?</strong> </p> <p>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. <strong>How do I make a connection between the information in the Database record and the email?</strong></p> <p>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.</p> <p>I am looking for something similar to using a hidden input like you can do in Form's and processing POST data.</p> <p>BTW: I am using CakePHP 2.1.x and am downloading my emails using IMAP. But the answer is probably not CakePHP specific.</p> <p>Any suggestions? Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload