hi there good coders i am trying to create a tool to change ppls moods
i have done this
also i dont now what to put in this for it to work
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
i have done this
Code:
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
Code:
<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
Comment