I'm using in my add-vehicle.php the following code to redirect my users after submitting a form and it works..(this is not the whole code)
if(isset($_GET['success']) && empty($_GET['success'])) ....(is true)
header('Location: www.mysite.com/add-vehicle?succses');
But I want to redirect my users to a unique webadres. For example:
www.mysite.com/add-vehicle?succses/car_id=1 and the next one to www.mysite.com/add-vehicle?succses/car_id=2'
so I want to output the data of my Database in my url.. What is the best way to do it?