i did a lil convert wanna know if this will work on the html version
i think it should work
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 & mood\">";
echo "
";
echo "Mood msg: <input name=\"kiss\" maxlength=\"100\"/>
";
echo "<form action=\"index.php?action=upolm&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&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 & mood","");
$kiss = $_POST["kiss"];
echo "<card id=\"main\" title=\"Updating online msg & mood\">";
echo "<p align=\"center\">";
$res = mysql_query("UPDATE ibwf_users SET onlinemsg='".$kiss."' WHERE id='".$uid."'");
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&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>
";
echo "</p>";
}
Comment