When a messege is read and the user replies how do I get the person who sent it username in the formfield of the next page? Thx
If I understand what you are asking, you want to take the username of the user and prepopulate a form field on another page. If that’s what you want, you can create a session variable ($_SESSION[‘username’]) and populate the variable with the name of the person. On the next page you can populate the value of the form field with the SESSION variable. You need to start both pages with the following PHP syntax session_start().
Start your pages inside the PHP tags with
And prepopulate your form field
<input type="text" name="username" value="<?php echo $_SESSION['username']?>">
Hope this helps…