Blogs (lava Script)

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

    Blogs (lava Script)

    the users are havin problems in posting blogs at my site. i have not edited my script in that section and its givin errors...
    tried to fix the problem but cant seem to find out how to solve it. can any1 help me n i give any part of my script that u want for any1 who solve it for me. thanks


    Code:
    else if($action=="addblg")
    {
    
    if(!getplusses(getuid_sid($sid))>25)
        {
            echo "<card id=\"main\" title=\"lavalair.net\">";
          echo "<p align=\"center\">";
          echo "Only 25+ plusses can add blogs
    
    ";
          echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
          echo "</p>";
        echo "</card>";
          echo "</wml>";
          exit();
        }
      $msgtxt = $_POST["btitle"];
      $msgtxt = $_POST["msgtxt"];
      //$qut = $_POST["qut"];
      addonline(getuid_sid($sid),"Adding a blog","");
      echo "<card id=\"main\" title=\"Add Blog\">";
          echo "<p align=\"center\">";
          $crdate = time();
          //$uid = getuid_sid($sid);
          $res = false;
    
          if((trim($msgtxt)!="")&&(trim($btitle)!=""))
          {
          $res = mysql_query("INSERT INTO ibwf_blogs SET bowner=&#39;".$uid."&#39;, bname=&#39;".$btitle."&#39;, bgdate=&#39;".$crdate."&#39;, btext=&#39;".$msgtxt."&#39;");
          }
          if($res)
          {
            echo "<img src=\"images/ok.gif\" alt=\"O\"/>Message Posted Successfully";
          }else{
            echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Posting Message";
          }
    
          echo "
    
    ";
          echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
          echo "</p>";
          echo "</card>";
    
    }

    #2
    ... thats because you
    got
    $msgtxt = $_POST["msgtxt"];
    $msgtxt = $_POST["btitle"];

    you didn&#39;t define the variable $btitle
    so therefore its equal to null.. try this
    $msgtxt = $_POST["msgtxt"];
    $btitle = $_POST["btitle"];
    am betting it have to work now. ....

    R.M.C
    ----------
    PHP Adovocate B)

    Comment

    Working...
    X