user45623
0
Q:

php header redirect

<?php
// This will just redirect you to example.com
header("Location: https://example.com");  
?>
3
<?php
// This will redirect  to google.com
$url = "https://google.com";
header("Location: $url");  
?>
8
< ?php header("Location: http://www.redirect.to.url.com/"); ?>
2
header("Location: http://example.com/myOtherPage.php");
die();
4
<?php
/*
	This will redirect  to facebook.com
*/
$url = "https://facebook.com.com";
header("Location: $url");  
exit;
?>
2
header('Location: http://www.example.com/');
2
<?php
// This will just redirect you to example.com
$url = "https://example.com";
header("Location: $url");  
?>
3
< ?php header("Location: http://www.redirect.to.url.com/"); ?>
1
/*
This will just redirect you to example.com
*/

<?php
$url = "https://example.com";
header("Location: $url");  
exit;
?>

/* I hope it will help you. Namaste */
2

<html>
<?php
/* This will give an error. Note the output
 * above, which is before the header() call */
header('Location: http://www.example.com/');
exit;
?>

0
$id_car = '2';
Header("Location: formUpdateCar.php?car=".$id_car);
0

New to Communities?

Join the community