Hello friends this function does not send the message, you know what is the action?
	
	
							
						
					PHP Code:
	
	
echo "<form action=\"genproc.php?action=general&sid=$sid\" method=\"post\">";
echo "<br/>Write: <input name=\"fmsg\"  value=\"$fmsg\" maxlength=\"255\" />";
echo "<br/><input type=\"Submit\" Name=\"Submit\" Value=\"submit\"></form>"; 
PHP Code:
	
	
if($action=="general")
{
$fmsg = $_POST["fmsg"];echo "<head>";
  echo "<title>Oggetto Chat</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";   $res = mysql_query("UPDATE ibwf_settingss SET value='".$fmsg."' WHERE name='4ummsg'");
  if($res)
  {
  echo "<img src=\"../images/ok.gif\" alt=\"O\"/>successfully written<br/>";
  }else{
  echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error write<br/>";
  }
 echo "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
} 
Comment