im absoulutely new with php, readed the "if" statement in the php.net manual but no luck yet, what im missing?
Lets say this one below is called file.php
<?php
require "bla.php";
$cat = $_GET['cat'];
if ($cat = "10")
header("Location: http://domain.com/folder/index.php");
......
......
?>
when i visit : www.mydomain.com/file.php?cat=10 it should redirect to another page using the header location, but i cannot figure it, any value i put for the "cat" it always redirects me instead of going on running the current page.
say i place
www.mydomain.com/file.php?cat=88
www.mydomain.com/file.php?cat=7
www.mydomain.com/file.php?cat=158
it alwsys send me to http://domain.com/folder/index.php
:queasy: :queasy: :queasy: