Is it possible to make php take a part of my html text from the db and use it? On my site people can send messages to each other. Let's say this is the message sent from person_1 to person_2 and a copy (CC) of it is sent to person_3 and person_4 The message how it appears in the database: The message blabla<br> <br> To: <a href="profile.php?id=Person_2&tru=1">Person_2</a><br> CC: <a href="profile.php?id=Person_3&tru=1">Person_3</a>, <a href="profile.php?id=Person_4&tru=1">Person_4</a> HTML: There is a reply button that will go to another page which will be send.php?id=Person_1&tru=1 (because the message came from Person_1) ******* Now what I want to do is add another button in the mailbox page called Reply To All IF the message was also sent to someone else. In this case it is CC: Person_3, Person_4 When I press "reply all" I want it to fill the CC box with "Person_3, Person_4" To do that I need to send the data somehow to that page. The link would probably be like send.php?id=Person_1&tru=1&cc=Person_3, Person_4 IS IT POSSIBLE TO PULL THAT KIND OF DATA OUT OF THAT TEXT? It's always the last line of the message, the names of the persons are always links and separated with comma and space (works without space as well though). <a href="profile.php?id=Person_3&tru=1">Person_3</a> (the names link to profile pages) If it's possible then I'll need some help with it ** I realize the topic's title has a typo and is not very informative, if a moderator comes by feel free to change it**
Really? I wrote every possible detail I could. Basically on my site when a person received a letter from another person it can sometimes be copied to other people. If the message was CCd to 2 people like in my example then the other 2 people would receive the same letter. I want the person who receives the letter be able to reply to the letter and all the names in the CC list to fill the next page, but the CC list is inside the message. Is it possible to pull those names out from the messages?
Hi, I got your query, can you tell me CC option is showing up in a text box or it is on the page only . Thanks,
The CC is a text box on another page where they send messages, I guess I can get the text into the textbox once I get get php to pull it out and put it in a link, but I'm not sure if it's possible. I mean if the CC is to 1, 2 then the link "reply all" would add "&CC=1,2" to the link. Can it be somehow taken from the text?
Hi , it is easy on the other page that text box is getting values form some variable , you have to modify that before sending that value to text box, please put your cc file code here i think i will tell you what to fix. > thanks
Do you want the code of the page where they send the message or the mailbox code where they reply to the message. CC list names are not variables, pure html, if it's not possible to pull them from there I guess I have to make a new field in the db for CCs...