我在php中有一些代码,在该代码的标头中,我想提供我的离子应用程序页面的链接

问题描述 投票:0回答:1

page.php

if($order_status != 'Success'){ 
    $date = date('d-M-Y h:i:sa');
    $new = mysqli_query($conn, "UPDATE `event_reg` SET payment_date = '$date', status_text = '$order_status;', tid = '$transaction_id', order_id = '$order_id' WHERE reg_id = '$tidd'");

    header("location:canceled.php?reg_id=$tidd");
}

在页面的页眉位置是canceled.php,但我不希望这样。我想在我的离子应用程序页面中将其重定向。我的php页面在服务器上,项目在localhost上。

php html ionic-framework
1个回答
0
投票

代替

header("location:canceled.php?reg_id=$tidd");

使用

header("Location: https://YourIonicAppUrl/");
© www.soinside.com 2019 - 2024. All rights reserved.