ThinkPhp表单 action的路径问题 我支付宝写了个表单提交,然后写在Action模块里面有方法可以接收,请问我该怎么写这个form表单里action的路径呢,新手,求指教 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ThinkPhp 约定的伪静态路径为:模块名/方法名[[/参数名/参数值]...] function alipay() { $this->submit_url=''; }function create_form($list) { $pname=get_class($this); $this_script = "http://{$_SERVER['HTTP_HOST']}"; $this->add_field ( 'ordsubject', 'Products For SN:' . $list ['sn'] ); //产品名称 $this->add_field ( 'trade_no', $list ['sn'] ); //订单号码 $this->add_field ( 'ordtotal_fee', $list ['orders_total'] ); //交易价格 $this->form.= "<form method=\"post\" name=\"pay_form\" "; $this->form.= "action=\"". $this->submit_url ."\">\n"; foreach ($this->fields as $name => $value) { $this->form.= "<input type=\"hidden\" name=\"$name\" value=\"$value\"/>\n"; } $this->form.= "</form>\n"; if(GetSettValue($list['payment_module_code'].'_autosubmit')==1){ $delay=GetSettValue($list['payment_module_code'].'_delay'); $delay=$delay?$delay:5; $this->form.=$this->submit($delay);//是否自动提交,延迟5秒 } return $this->form; } 上面是我的代码,我的都是写在Lib的文件夹里的,不是写在模版上的 真心求深圳地区工作 自动引用某网页中一段动态代码 分页按钮样式 curl上传文件到远程服务器的问题 php smarty 双循环只输出一条数据的问题 【关于memcache的key设定】 Php file() 不能获取远程HTML文件 框架VS自已!!想问一下自已写程序运行效率是不是没有框架高? php开发,fopen(r+)报错 start WampServer 请问如何用键名分组? php中webservice问题--着急
$this->submit_url='';
}
function create_form($list) {
$pname=get_class($this);
$this_script = "http://{$_SERVER['HTTP_HOST']}"; $this->add_field ( 'ordsubject', 'Products For SN:' . $list ['sn'] ); //产品名称
$this->add_field ( 'trade_no', $list ['sn'] ); //订单号码
$this->add_field ( 'ordtotal_fee', $list ['orders_total'] ); //交易价格
$this->form.= "<form method=\"post\" name=\"pay_form\" ";
$this->form.= "action=\"". $this->submit_url ."\">\n";
foreach ($this->fields as $name => $value) {
$this->form.= "<input type=\"hidden\" name=\"$name\" value=\"$value\"/>\n";
}
$this->form.= "</form>\n"; if(GetSettValue($list['payment_module_code'].'_autosubmit')==1){
$delay=GetSettValue($list['payment_module_code'].'_delay');
$delay=$delay?$delay:5;
$this->form.=$this->submit($delay);//是否自动提交,延迟5秒
}
return $this->form;
}