• From what I understood he/she wants to save id of the user in the table from the name entered in UI and then use the same id to send message to the particular user phone number corresponding to that ID. What is your exact question regarding this ? I think we will need to know more to be able to help you. What tables are you using, what are the columns, sample data ??