echo "<form action='https://www.yirongzf.com/pay' method='post'>
<input type='hidden' name='uid' value='".$uid."'>
<input type='hidden' name='price' value='".$price."'>
<input type='hidden' name='istype' value='".$istype."'>
<input type='hidden' name='notify_url' value='".$notify_url."'>
<input type='hidden' name='return_url' value='".$return_url."'>
<input type='hidden' name='orderid' value='".$orderid."'>
<input type='hidden' name='orderuid' value='".$orderuid."'>
<input type='hidden' name='goodsname' value='".$goodsname."'>
<input type='hidden' name='attach' value='".$attach."'>
<input type='hidden' name='key' value='".$key."'>
<input type='submit' id='from_but'>
</form>";
echo "<script>
document.getElementById('from_but').click();
</script>";
<html>
<head>
<meta charset="utf8">
<title>让支付更简单</title>
</head>
<body>
<form name="pay" action="http://www.unionchinapay.com/apisubmit" method="post">
<?php
foreach ($params as $key => $val) {
echo $key.': <input type="text" name="' . $key . '" value="' . $val . '"><br/>';
}
?>
<input type="submit" value="提交">
</form>
</body>
</html>