gpt4 book ai didi

php - 如何在 drupal 7 中使用 drupal_goto 发送变量

转载 作者:行者123 更新时间:2023-12-04 00:45:29 24 4
gpt4 key购买 nike

我正在尝试使用 drupal_goto 函数,但它被重定向到错误的 URL

这是我的代码

$dis='user/' . $account->uid . '/edit/?id=6356928';
drupal_goto($dis);

ID的问题

有什么建议吗??

最佳答案

drupal_goto使用与 url() 相同的 $options 设置.

尝试做以下事情

drupal_goto("user/" . $account->uid . "/edit", array(
'query' => array(
'id' => '6356928',
),
));

关于php - 如何在 drupal 7 中使用 drupal_goto 发送变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10962273/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com