Html Version

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

    Html Version

    i did a lil convert wanna know if this will work on the html version
    i think it should work
    Code:
    //////////////////////////////////////////Update online msg & mood
    else if($action=="mood")
    {
    addonline(getuid_sid($sid),"Updating online msg & mood","");
    echo "<card id=\"main\" title=\"Updating online msg &amp; mood\">";
    echo "
    
    ";
    echo "Mood msg: <input name=\"kiss\" maxlength=\"100\"/>
    ";
    echo "<form action=\"index.php?action=upolm&amp;sid=$sid\" method=\"post\">";
    echo "<postfield name=\"kiss\" value=\"$(kiss)\"/>";
    echo "<input type=\"submit\" value=\"GO\"/>";        
    echo "</form>";
    echo "
    
    ";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>
    ";
    echo "</p>";
    
    }
    //////////////////////////////////////////Update online msg & mood
    else if($action=="upolm")
    {
    addonline(getuid_sid($sid),"Updating online msg &amp; mood","");
    $kiss = $_POST["kiss"];
    echo "<card id=\"main\" title=\"Updating online msg &amp; mood\">";
    echo "<p align=\"center\">";
    $res = mysql_query("UPDATE ibwf_users SET onlinemsg=&#39;".$kiss."&#39; WHERE id=&#39;".$uid."&#39;");
      if($res)
      {
        echo "<img src=\"images/ok.gif\" alt=\"o\"/>Your online msg was updated successfully
    ";
      }else{
        echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error updating your online msg
    ";
      }
    echo "
    <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>
    ";
    echo "</p>";
    }

    #2
    wel why dont yu try it then wierdo lol
    Want something coded email me at sales@webnwaphost.com for a prices.




    Comment


      #3
      lol hehe ma site as alot a member don,t want no error thats why i ask

      Comment


        #4
        it work but ma onlinelist has no color

        Comment


          #5
          when i type msg it don,t show on online list someone giv me a hand

          Comment


            #6
            it work but ma onlinelist has no color[/b]
            dud no colour codeings or functions were added

            Comment


              #7
              i fix color that easy but when i write like am sad or so it don,t show on the online list

              Comment


                #8
                //////////////////////////////////////////Update online msg & mood
                else if($action=="mood")
                {
                addonline(getuid_sid($sid),"Updating online msg &amp; mood","");
                echo "<card id=\"main\" title=\"Updating online msg &amp; mood\">";
                echo "

                ";
                echo "<form action=\"index.php?action=upolm&amp;sid=$sid\" method=\"post\">";
                echo "Mood msg: <input name=\"kiss\" maxlength=\"100\"/>
                ";
                echo "<input type=\"submit\" value=\"GO\"/>";
                echo "</form>";
                echo "

                ";
                echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                echo "Home</a>
                ";
                echo "</p>";

                }
                //////////////////////////////////////////Update online msg & mood
                else if($action=="upolm")
                {
                addonline(getuid_sid($sid),"Updating online msg &amp; mood","");
                $kiss = $_POST["kiss"];
                echo "<card id=\"main\" title=\"Updating online msg &amp; mood\">";
                echo "<p align=\"center\">";
                $res = mysql_query("UPDATE ibwf_users SET onlinemsg=&#39;".$kiss."&#39; WHERE id=&#39;".$uid."&#39;");
                if($res)
                {
                echo "<img src=\"images/ok.gif\" alt=\"o\"/>Your online msg was updated successfully
                ";
                }else{
                echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error updating your online msg
                ";
                }
                echo "
                <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                echo "Home</a>
                ";
                echo "</p>";
                }

                here its is now i finally fix it yall can use if want

                Comment


                  #9
                  Code:
                  $kiss = $_POST["kiss"];
                  to
                  Code:
                  $kiss = mysql_real_escape_string($_POST["kiss"]);
                  unless you like users injecting sql of course

                  Comment


                    #10
                    i did a lil convert wanna know if this will work on the html version
                    i think it should work
                    Code:
                    //////////////////////////////////////////Update online msg & mood
                    else if($action=="mood")
                    {
                    addonline(getuid_sid($sid),"Updating online msg &amp; mood","");
                    echo "<card id=\"main\" title=\"Updating online msg &amp; mood\">";
                    echo "
                    
                    ";
                    echo "Mood msg: <input name=\"kiss\" maxlength=\"100\"/>
                    ";
                    echo "<form action=\"index.php?action=upolm&amp;sid=$sid\" method=\"post\">";
                    echo "<postfield name=\"kiss\" value=\"$(kiss)\"/>";
                    echo "<input type=\"submit\" value=\"GO\"/>";        
                    echo "</form>";
                    echo "
                    
                    ";
                    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                    echo "Home</a>
                    ";
                    echo "</p>";
                    
                    }
                    //////////////////////////////////////////Update online msg & mood
                    else if($action=="upolm")
                    {
                    addonline(getuid_sid($sid),"Updating online msg &amp; mood","");
                    $kiss = $_POST["kiss"];
                    echo "<card id=\"main\" title=\"Updating online msg &amp; mood\">";
                    echo "<p align=\"center\">";
                    $res = mysql_query("UPDATE ibwf_users SET onlinemsg=&#39;".$kiss."&#39; WHERE id=&#39;".$uid."&#39;");
                      if($res)
                      {
                        echo "<img src=\"images/ok.gif\" alt=\"o\"/>Your online msg was updated successfully
                    ";
                      }else{
                        echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error updating your online msg
                    ";
                      }
                    echo "
                    <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                    echo "Home</a>
                    ";
                    echo "</p>";
                    }
                    [/b]
                    this is a nice mixture of wml and html tags so it wont never work
                    As you removed my copyright from my coding I wont help you

                    Comment


                      #11
                      don,t need help bro did it already

                      Comment


                        #12
                        not working...........

                        Comment

                        Working...
                        X