<?php 
              //PAYEX
			  $this->currency = "01";
			  $this -> url = $SiteUrl."memberfunc_payresult.php";
			  $ndate = date("Ymd");
			  
			  
			  $md5string=md5($this->merid.$this->orderid.$this->amount.$ndate.$this->ikey); //md5加密字串

			  $hiddenString = "<Input Type=hidden Name=\"merid\" id=merid value=\"".$this->merid."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"payid\" id=payid value=\"".$this->orderid."\">";
		      $hiddenString.= "<Input Type=hidden Name=\"amount\" id=amount value=\"".$this->amount."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"date\" id=date value=\"".$ndate."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"currency\" id=currency value=\"".$this->currency."\">";			  
			  $hiddenString.= "<Input Type=hidden Name=\"lang\" id=lang value=\"".$this->lang."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"rname\" id=rname value=\"".$this->rname."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"remail\" id=remail value=\"".$this->remail."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"rtel\" id=rtel value=\"".$this->rtel."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"rpost\" id=rpost value=\"".$this->rpost."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"raddr\" id=raddr value=\"".$this->raddr."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"rnote\" id=rnote value=\"".$this->rnote."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"pname\" id=pname value=\"".$this->payname."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"merchanturl\" id=merchanturl value=\"".$this->url."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"shopexid\" id=shopexid value=\"".$this->shopexid."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"verifymd5\" id=verifymd5 value=\"".$md5string."\">";
			  $this->action = "http://www.payex.cn/cgi/payex.php";
			  $hiddenString="<form target=_blank method=post action=".$this->action.">".$hiddenString."<input  type=submit value='立即通过".$this->pcenter."在线支付'  name=submit></form>";
?>