首页 > 代码库 > CI 自动提交表单

CI 自动提交表单

//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 onl oad="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="http://www.mamicode.com/<?php echo $store_id ?>">
<input type="hidden" name="currency_code" id = "currency_code" value="http://www.mamicode.com/<?php echo $currency_code?>">
<input type="hidden" name="order_id" id="order_id" value="http://www.mamicode.com/<?php echo $order_id?>">
<input type="hidden" name="order_description" id="order_description" value="http://www.mamicode.com/<?php echo $order_description?>">
<input type="hidden" name="amount" id="amount" value="http://www.mamicode.com/<?php echo $amount?>">
<input type="hidden" name="product_id" id="product_id" value="http://www.mamicode.com/<?php echo $product_id?>">
<input type="hidden" name="client_id" id="client_id" value="http://www.mamicode.com/<?php echo $client_id ?>">
<input type="hidden" name="client_email" id="client_email" value="http://www.mamicode.com/<?php echo $client_email?>">
</form>
</body>>
</html>