I am in the process of creating a site that allows users to post messages. When a user clicks on a name in their contact list, that contact becomes a variable and is added as a recipient to the message.
echo "<td><a href='mypagepost.php?contact=$contact' STYLE='TEXT-DECORATION: NONE'><font color=#808080>" . $row['contact'] . "</a></font></td>";
This is the link created in the user's recipient list. So, it takes them to mypagepost.php. At mypagepost.php, I have;
<?php $messagerecipient = $_GET['contact']; ?>
And this works. Depending on the contact clicked on the contacts list on mypage.php, it will be stored as $messagerecipient. However, I would like to set it up so that if I continue to click on more recipients from mypagepost.php, new variables will be created that can also be used in the same way (so, maybe the new variables would become $messagerecipient2, $messagerecipient3, and so forth). Is there a way to do this?
Any help is appreciated, as always.