SIM0811.php
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?PHP
//*****************************************************************************
//* プログラム名:ユーザ更新処理
//* プログラムID:SIM0952.php
//* 機能 :ユーザ更新処理
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
include("./inc/session_start.inc");
include("./inc/SessionChk.inc");
include("./inc/dbcon.inc");
$seq = $_POST["uSeq"];
$uName = $_POST["uName"];
$uPw = $_POST["uPw"];
//修正
$strSQL = "UPDATE user_inf SET user_pw = '".$uPw."' " ;
$strSQL .= " WHERE user_seq = ".$uSeq ;
$objRec = pg_exec($strSQL);
if($objRec==false){
echo("SQL実行に失敗しました(UPDATE)");
exit;
}
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; cahrset=euc-jp">
<meta http-equiv="content-style-type" content="text/css">
<meta name="robots" content="noindex, nofollow">
<title></title>
<script language="javascript">
function trans(){
document.frm.action = "SIM0810.php";
document.frm.method="POST";
document.frm.submit();
}
</script>
</head>
<body onload="trans();">
<form name="frm">
</form>
</body>
</html>