简体   繁体   English

谁能帮我如何在重定向链接中传递参数

[英]Can anyone help me how to pass the parameters in redirect link

I am inserting the comments into the database after submitting that page I should get the inserted comments for that id as well. 我在提交该页面后将评论插入数据库中,我也应该获得该ID的插入评论。

<textarea  name="comments"  rows="2" cols="100" placeholder="comments..."></textarea><br/>

     <div class="content form">

  <input type="submit" value="<?php echo $button_comment; ?>" class=" button" />

Here is the view Controller. 这是视图控制器。

I have written the redirect function like this. 我已经这样写了重定向功能。

$this->redirect($this->url->link('boutique/customerorder/details'));

Here, I should pass the particular customer id to get that details. 在这里,我应该传递特定的客户ID以获得详细信息。

试试下面的代码:

$this->redirect($this->url->link('boutique/customerorder/details', 'customer_id=' . $customer_id, 'SSL'));

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM