Blogs (lava Script)

Started on the old forum in February 2008 · view the original in the archive · old links redirect here

1 reply · 483 views · started 18 years ago · 1 min read

2 participants
hypetype Developer · 128 posts #1

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 External image (may be gone)

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&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='".$uid."', bname='".$btitle."', bgdate='".$crdate."', btext='".$msgtxt."'");
      }
      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&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
      echo "</p>";
      echo "</card>";

}
mcKeny Developer · 130 posts #2

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

you didn'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. .... External image (may be gone)

R.M.C

PHP Adovocate B)

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close