CI 自动提交表单

时间:2021-10-15 20:31:01

//coontrol

$this->load->view ( '/' . $this->index_lang ['FOLDER'] . '/eprepag_form.php', $params);

//view

//eprepag_form.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>eprepag</title>

<script>

</script>

</head>
<body onload="document.billing.submit()">
<form name="billing" id="billing" action="<?php echo $form_url?>" method="post" >
<input type="hidden" name="store_id" id = "store_id" value="<?php echo $store_id ?>">
<input type="hidden" name="currency_code" id = "currency_code" value="<?php echo $currency_code?>">
<input type="hidden" name="order_id" id="order_id" value="<?php echo $order_id?>">
<input type="hidden" name="order_description" id="order_description" value="<?php echo $order_description?>">
<input type="hidden" name="amount" id="amount" value="<?php echo $amount?>">
<input type="hidden" name="product_id" id="product_id" value="<?php echo $product_id?>">
<input type="hidden" name="client_id" id="client_id" value="<?php echo $client_id ?>">
<input type="hidden" name="client_email" id="client_email" value="<?php echo $client_email?>">
</form>
</body>>
</html>