Location: PHPKode > scripts > wwdbank > wwdbank/admin/messagesend2.php
<?php
Include_once('includes/session_config.php');
echo"<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">";

//if users to receive message is set
if(isset($_POST['messagesend1']))
{
$to_user=($_POST['set_users']);
$from_user=($_POST['from_user']);
echo "$from_user";
//write message
echo"<form action=\"$PHP_SELF?\" method=\"post\">";
echo"<tr><td height=\"25\">Message Title</td><td><input name=\"title\" type=\"text\" size=\"50\"></td></tr>";
echo"<tr><td valign=\"top\">Message</td><td><textarea name=\"body\" cols=\"48\" rows=\"10\" wrap=\"VIRTUAL\"></textarea></td></tr>";
echo"<input type= \"hidden\" name= \"from_user\" value= \"$from_user\">";
echo"<input type= \"hidden\" name= \"to_user\" value= \"$to_user\">";
echo"<input type= \"hidden\" name= \"messagesend2\" value= \"$messagesend2\">";
echo "<input type= \"hidden\" name= \"admin\" value= \"admin\" >
<input type= \"hidden\" name= \"user_name\" value= \"{$_SESSION['user_name']}\" >
<input type=\"hidden\" name=\"pass\" value=\"{$_SESSION['pass']}\">
	<input type=\"hidden\" name=\"from_user\" value=\"$from_user\">";
echo"<input type= \"hidden\" name= \"messaging\" value= \"messaging\" >";
echo"<tr><td><input name=\"submit\" type=\"submit\" value=\"Send Message\"></td></tr></form>";
}
else
{
	if(isset($_POST['reply']))
	{
	$to_user=($_POST['reply_user']);
	$from_user=($_POST['from_user']);
	$title=($_POST['title']);
	
	//write message
	echo"<form action=\"$PHP_SELF?\" method=\"post\">";
	echo"<tr><td height=\"25\">Message Title</td><td><input name=\"title\" type=\"text\" value=\"$title\"></td></tr>";
	echo"<tr><td valign=\"top\">Message</td><td><textarea name=\"body\" cols=\"48\" rows=\"10\" wrap=\"VIRTUAL\"></textarea></td></tr>";
	echo"<input type= \"hidden\" name= \"from_user\" value= \"$from_user\">";
	echo"<input type= \"hidden\" name= \"to_user\" value= \"$to_user\">";
	echo "<input type= \"hidden\" name= \"admin\" value= \"admin\" >
	<input type= \"hidden\" name= \"user_name\" value= \"{$_SESSION['user_name']}\" >
	<input type=\"hidden\" name=\"pass\" value=\"{$_SESSION['pass']}\">";
	echo"<input type= \"hidden\" name= \"messagesend2\" value= \"$messagesend2\">";
	echo"<input type= \"hidden\" name= \"messaging\" value= \"messaging\" >";
	echo"<tr><td><input name=\"submit\" type=\"submit\" value=\"Send Message\"></td></tr></form>";
	}
}
echo"</table>";
?>
Return current item: wwdbank