<?
# **********************************************************
# 関数定義
# **********************************************************
require_once( "function.php" );
$Sel[$_POST['kubun']] = "selected";
$_POST['MainKey'] = trim( $_POST['MainKey'] );
if ( $_POST['MainKey'] == '' ) {
SetErrMessage( '空白文字が入力されました' );
}
require_once( "pagestart.php" );
?>
<FORM
name=frmMain
method=post
action=<?= $_SERVER['SCRIPT_NAME'] ?>
onSubmit='return CheckData();'
>
<SELECT name=kubun>
<OPTION value=1 <?= $Sel[1] ?>>登録
<OPTION value=2 <?= $Sel[2] ?>>修正
<OPTION value=3 <?= $Sel[3] ?>>削除
</SELECT>
<BR>
<INPUT name=MainKey type=text>
<INPUT name=SendButton type=submit value="送信">
<BR>
<?= $ErrMessage ?>
</FORM>
<?
require_once( "pageend.php" );
# **********************************************************
# デバッグ用表示
# **********************************************************
DispPost();
?>
|