1 rizwank 1.1 <?php
2 require "./inc/head.php";
3
4 $uid = $_REQUEST['uid'];
5 $usr = $_REQUEST['usr'];
6 $pwd = $_REQUEST['pwd'];
7 $pwd2 = $_REQUEST['pwd2'];
8
9 if (rtrim($pwd) == rtrim($pwd2))
10 {
11
12 mysql_query("UPDATE $utbl SET usr='$usr', pwd='$pwd' WHERE id = $uid") or die(mysql_error());
13
14 header("Location: signout.php?m=1");
15 }
16 else
17 {
18 header("Location: user-profile.php?m=2");
19 }
20
21 ?>
|