change mood

Started on the old forum in January 2010 · view the original in the archive · old links redirect here

1 reply · 402 views · started 16 years ago · 1 min read

brand Senior · 391 posts #1

hi there good coders i am trying to create a tool to change ppls moods

i have done this

if ($action=="upwd")
{
$npwd = $_POST["npwd"];
if((strlen($npwd)<4) || (strlen($npwd)>20))
{
echo "<img src=\"../phpThumb/phpThumb.php?src=../images/notok.gif\" alt=\"x\"/>password should be between 4 and 15 letters only<br/>";
}else{
$pwd = md5($npwd);
$res = mysql_query("UPDATE users SET mood WHERE id='".$who."'");
if($res)
{
echo "<img src=\"../phpThumb/phpThumb.php?src=../images/ok.gif\" alt=\"o\"/>password was updated successfully<br/>";
}else{
echo "<img src=\"../phpThumb/phpThumb.php?src=../images/notok.gif\" alt=\"x\"/>Error updating password<br/>";
}
}

also i dont now what to put in this for it to work

<form action=\"edituser.php?action=chmood&sid=$sid&who=$who\" method=\"post\">
Change Mood: <input name=\"chmood\" style=\"-wap-input-format: '*x'\" maxlength=\"15\"/><br/>
<input type=\"Submit\" Name=\"Submit\" Value=\"Change\"></form>

now i now this is for password which i am trying to change to mood but having problems on what to put for it to work i am trying to get this to work on wapdesire v_2

thanks to any one that can help me sort this out

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

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