Kod
<?php
header('location [strona/plik]');
?>
header('location [strona/plik]');
?>
więc go użyłem w prostym skrypcie
Kod
<?php
$test = $_POST['test'];
if($test == 1)
{
header('location: www.google.pl');
}
else
{
header('location: prostoliniowy.php';
}
?>
$test = $_POST['test'];
if($test == 1)
{
header('location: www.google.pl');
}
else
{
header('location: prostoliniowy.php';
}
?>
Jednak nie dziala... wywalając
Kod
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\fizyka\new.php:14) in C:\xampp\htdocs\fizyka\new.php on line 20
Te manuale jednak nie zawsze pomagają...