header(location: code example
Example 1: redirect php
< ?php header("Location: http://www.redirect.to.url.com/"); ?>
Example 2: header php
<html>
<?php
/* This will give an error. Note the output
* above, which is before the header() call */
header('Location: http://www.example.com/');
exit;
?>
Example 3: php header redirect with parameters
$id_car = '2';
Header("Location: formUpdateCar.php?car=".$id_car);