<?php
session_start();

$userName		= $_POST['user_name'];
$password		= $_POST['password'];
$pNum			= $_POST['p_num'];
$amount			= $_POST['amount'];
$from_account	= $_POST['from_account'];
$to_account		= $_POST['to_account'];
$debit_currency	= $_POST['debit_currency'];
$currency		= $_POST['currency'];
$message		= $_POST['message'];

$hash = hash('sha256', $userName . $password . $pNum . $amount);
?>

<!doctype html>
<html lang="ja">
	<head>
		<meta charset="utf-8">
	</head>
	<body>
		<form action="../api/MoneyRequest" method="POST">
			シグネチャ：<?php echo $hash; ?><br/>
			User-Name名：<?php echo $userName; ?><br/>
			パスワード：<?php echo $password; ?><br/>
			番組コード：<?php echo $pNum; ?><br/>
			金額：<?php echo $amount; ?><br/>
			FROM_ACCOUNT：<?php echo $from_account; ?><br/>
			TO_ACCOUNT：：<?php echo $to_account; ?><br/>
			DEBIT_CURRENCY：<?php echo $debit_currency; ?><br/>
			CURRENCY：<?php echo $currency; ?><br/>
			MESSAGE：<?php echo $message; ?><br/>

			<input type="submit" value="テスト送信">

			<input type="hidden" value="<?php echo $hash; ?>" name="signature" />
			<input type="hidden" value="<?php echo $pNum; ?>" name="p_num" />
			<input type="hidden" value="<?php echo $currency; ?>" name="currency" />
			<input type="hidden" value="<?php echo $amount; ?>" name="amount" />
			<input type="hidden" value="<?php echo $from_account; ?>" name="from_account" />
			<input type="hidden" value="<?php echo $to_account; ?>" name="to_account" />
			<input type="hidden" value="<?php echo $debit_currency; ?>" name="debit_currency" />
			<input type="hidden" value="<?php echo $currency; ?>" name="currency" />
			<input type="hidden" value="<?php echo $message; ?>" name="message" />
		</form>
	</body>
</html>