0

我在我的 add-vehicle.php 中使用以下代码在提交表单后重定向我的用户并且它有效..(这不是整个代码)

if(isset($_GET['success'])  && empty($_GET['success'])) ....(is true)

header('Location: www.mysite.com/add-vehicle?succses');

但我想将我的用户重定向到一个独特的 webadres。例如:

www.mysite.com/add-vehicle?succses/car_id=1和下一个www.mysite.com/add-vehicle?succses/car_id=2'

所以我想在我的 url 中输出我的数据库的数据。最好的方法是什么?

4

1 回答 1

1

您可以只使用PHP变量来调整 URL。

header('Location: http://' . $_DBPage);
于 2013-10-29T20:38:20.983 回答