Html Version

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

11 replies · 1,319 views · started 18 years ago · 1 min read

5 participants
roger Developer · 65 posts #1

i did a lil convert wanna know if this will work on the html version i think it should work

//////////////////////////////////////////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>";
}

advertiser here the place to be join ROGER TO THE WORLD LOL advertiser here new http://tinyurl.com/5tfnzp CODE$rogerInfo = array(“handsome”, “18”,youngcoder);

Guest #6

it work but ma onlinelist has no color

dud no colour codeings or functions were added

roger Developer · 65 posts #8

//////////////////////////////////////////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 "<form action="index.php?action=upolm&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&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a> "; echo " ";

} //////////////////////////////////////////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 " "; $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 " "; }

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

advertiser here the place to be join ROGER TO THE WORLD LOL advertiser here new http://tinyurl.com/5tfnzp CODE$rogerInfo = array(“handsome”, “18”,youngcoder);

djlee Developer · 224 posts #9
$kiss = $_POST["kiss"];

to

$kiss = mysql_real_escape_string($_POST["kiss"]);

unless you like users injecting sql of course External image (may be gone)

rukiya Lead · 569 posts #10

i did a lil convert wanna know if this will work on the html version i think it should work

//////////////////////////////////////////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>";
}

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

friend Developer · 112 posts #12

not working...........

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