SIM0811.php 1.1 KB
<?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>