LIST3751.php
1.55 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
50
51
52
53
54
55
56
57
58
<?PHP
//*****************************************************************************
//*
//* プログラム名:メールデータDB更新
//* プログラムID:LIST2751.php
//* 機能 :配信内容内容を更新
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
//***************************
//* インクルードファイル
//***************************
include("./include/jcode.phps");
include("./include/session_start.inc");
include("./include/SessionChk.inc");
include("./include/dbcon.inc");
//***************************
//* メイン処理
//***************************
//メールデータ更新
$strSQL = "UPDATE";
$strSQL .= " mail_data ";
$strSQL .= "SET ";
$strSQL .= " subject_name = '".$_POST["subject_name"]."', ";
$strSQL .= " contents = '".$_POST["contents"]."' ";
$strSQL .= "WHERE ";
$strSQL .= " mail_id = " . $_POST["mail_id"];
$objRec = pg_exec($strSQL);
if($objRec==false){
echo("SQL実行に失敗しました(UPDATE)");
exit;
}
?>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=EUC-JP">
<META http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" type="text/css" href="basefont.css">
<TITLE>め〜るNiポン!</TITLE>
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
function load_screen(){
document.frm.action = "LIST3000.php";
document.frm.method="POST";
document.frm.submit();
}
-->
</SCRIPT>
</HEAD>
<BODY onLoad="return load_screen();">
<form name="frm">
<INPUT type="hidden" name="mail_id" value="<?PHP echo $_POST["mail_id"]; ?>">
</form>
</BODY>
</HTML>