Header location is not working on live server

前端 未结 4 603
遥遥无期
遥遥无期 2021-01-29 11:58

I Have one registration and payment page. program flow is like registration > confirmation > payment. After validation and calculation in registration page need to go to confirm

4条回答
  •  隐瞒了意图╮
    2021-01-29 12:30

    $host  = $_SERVER['HTTP_HOST'];
    $uri   = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
    $extra = 'confirm.php';
    header("Location: http://$host$uri/$extra");
    

提交回复
热议问题