Function sending

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Function sending

    Hello friends this function does not send the message, you know what is the action?
    PHP Code:
    echo "<form action=\"genproc.php?action=general&amp;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&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
      echo 
    "</body>";


    #2
    thats your main page message . usually attached to tools not genproc
    Wapchat4u


    Topsites4u

    Comment


      #3
      yes, and I want to put in the chat room, but does not write the message, the database will receive the message, but does not write in room. I need to put here
      PHP Code:
      /////////////////////////////////////////////////////CHAT OPTIONS
              
      else if ($action=="options")   
                              {
         echo 
      "<head>";
            echo 
      "<title>Chat Option</title>";
        echo 
      "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
            echo 
      "</head>";
            echo 
      "<body>";
                
      $mmsg htmlspecialchars(getsetmood(getuid_sid($sid)));
              
      addonline($uid," Chat Option ($mmsg)","");
              echo 
      "<form action=\"genproc.php?action=say&amp;sid=$sid\" method=\"post\">";
      echo 
      "<br/>Oggetto: <input name=\"fmsg\"  value=\"$fmsg\" maxlength=\"255\" />";
      echo 
      "<br/><input type=\"Submit\" Name=\"Submit\" Value=\"submit\"></form>"
      Last edited by Leviathan73; 05.02.11, 13:49.

      Comment


        #4
        PHP Code:
        echo "<form action=\"genproc.php?action=general&amp;sid=$sid\" method=\"post\">";
        echo 
        "<br/>Write: <input type="text" name=\"fmsg\"  value=\"$fmsg\" maxlength=\"255\" />";
        echo 
        "<br/><input type=\"Submit\" Name=\"Submit\" Value=\"submit\"></form>"
        com site: http://vampist.net
        download site: http://wapdloads.net
        fb: http://www.facebook.com/pmplx

        Comment


          #5
          In not sending me to send the message, because there is a window and is not clickable. the text should be here
          PHP Code:
          $mmsg htmlspecialchars(getsetmood(getuid_sid($sid)));
                  
          addonline($uid,"Chat $rname ($mmsg)","chat.php?rid=$rid&amp;rpw=$rpw");
                  
          //echo "<p>";
                  
          echo popup($sid);
          echo 
          "<img src=\"../images/logo2.gif\" alt=\"*\"/><br/>";
          $fmsg getbbcode(getfmsg(), $sid0);
            echo 
          "<p align=\"left\">$fmsg</p>";
           
                 echo 
          "<b>1 </b><a name=\"top\" id=\"top\" accesskey=\"1\" href=\"chat.php?action=say&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">write</a><br/>"
          Last edited by Leviathan73; 05.02.11, 14:13.

          Comment


            #6
            if its in the database then your form is correct.... so you need to show us this function: getfmsg() which must call it from the database

            Comment


              #7
              function put the code here in this
              PHP Code:
              $mmsg htmlspecialchars(getsetmood(getuid_sid($sid)));
                      
              addonline($uid,"Chat $rname ($mmsg)","chat.php?rid=$rid&amp;rpw=$rpw");
                      
              //echo "<p>";
                      
              echo popup($sid);
              echo 
              "<img src=\"../images/logo2.gif\" alt=\"*\"/><br/>";
              $fmsg getbbcode(getfmsg(), $sid0);
                echo 
              "<p align=\"left\">$fmsg</p>";
               
                     echo 
              "<b>1 </b><a name=\"top\" id=\"top\" accesskey=\"1\" href=\"chat.php?action=say&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">write</a><br/>"

              Comment


                #8
                PHP Code:
                $mmsg htmlspecialchars(getsetmood(getuid_sid($sid)));
                        
                addonline($uid,"Chat $rname ($mmsg)","chat.php?rid=$rid&amp;rpw=$rpw");
                        
                //echo "<p>";
                        
                echo popup($sid);
                echo 
                "<img src=\"../images/logo2.gif\" alt=\"*\"/><br/>";
                $str mysql_query("SELECT value FROM ibwf_settingss WHERE name='4ummsg'"); //does settingss have 2 "ss" ??
                $fmsg getbbcode($str[0], $sid0);
                  echo 
                "<p align=\"left\">$fmsg</p>";
                 
                       echo 
                "<b>1 </b><a name=\"top\" id=\"top\" accesskey=\"1\" href=\"chat.php?action=say&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">write</a><br/>"

                Comment


                  #9
                  now I say... I do not know how did you get into here, But there's nothing to show

                  Added after 6 minutes:

                  yes, I renamed the table for the message "settingss"
                  Last edited by Leviathan73; 05.02.11, 15:10.

                  Comment


                    #10
                    $action = $_GET['action'];

                    Comment


                      #11
                      that action is already hold
                      PHP Code:
                      $action=$_GET["action"];
                      $id=$_GET["id"];
                      $sid $_GET["sid"];
                      $rid=$_GET["rid"];
                      $rpw=$_GET["rpw"];
                      $uid getuid_sid($sid);
                      $uexist isuser($uid);
                      $theme mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'")); 
                      In my opinion the problem does not write the message here
                      PHP Code:
                      if($action=="general")
                      {
                      $fmsg $_POST["fmsg"];echo "<head>"

                      Comment


                        #12
                        lol, somethingelse many thanks it works :-). The text message goes to all the rooms .. to make it go in one room, I must add that line in the rooms of the database table? :-)


                        Comment

                        Working...
                        X