21 $name = mysql_query(
"SELECT * FROM users WHERE userid='$receiverid'");
23 while($row = mysql_fetch_array(
$name))
26 echo
"<h3>Your Messages With " . $row[
'firstname'] .
" " . $row[
'lastname'] .
"</h3>";
36 <div
id=
"viewMessages" style=
"height:300px; overflow-y: auto; overflow-x: hidden;">
46 var myDiv = document.getElementById(
"viewMessages");
47 myDiv.scrollTop = myDiv.scrollHeight;
53 if(Yii::app()->user->id != NULL)
66 <form action=
"index.php?r=sendmessagefunction/index" method=
"post">
67 <textarea style=
"height: 100px; width: 400px;" name=
"message"></textarea>
69 <input hidden name=
"receiverid" value=
"<?php echo $_GET["userid
"];?>"/>
70 <input hidden name=
"senderid" value=
"<?php echo $senderid;?>"/>
73 <input type=
"submit" value=
"Send Message">
81 echo
"<br><br><a href=\" ./index.php?r=mymessages/index\">" .
"Go To My Messages Page" .
"</a>";