Dosya ex.php dosyasına yönlendirmek istediğiniz URL'yi çağırdıktan sonra sanırım bu sefer parametreler olmadan. Bunun için ex.php aşağıdaki kodu kullanmayı deneyin burada
<?
if($_GET['name']!='' || $_GET['price']!='' ||$_GET['quantity']!='' ||$_GET['code']!='' || $_GET['search']!=''){
/* here the code checks whether the url contains any parameters or not, if yes it will execute parameters stuffs and it will get redirected to the page http://localhost/join/prog/ex.php without any parameters*/
/* do what ever you wish to do, when the parameters are present. */
echo $name;
print $price;
//etc....
$location="http://localhost/join/prog/ex.php";
echo '<META HTTP-EQUIV="refresh" CONTENT="0;URL='.$location.'">';
exit;
}
else{
/* here rest of the body i.e the codes to be executed after redirecting or without parameters.*/
echo "Hi no parameters present!";
}
?>
u kimliği sadece herhangi bir parametre sorgu dizesinde varsa kontrol etmeden aynı sayfaya yönlendirme yönlendirme yaptıklarını. kod, parametrelerin varlığını akıllıca kontrol eder, herhangi bir parametre vardır, ex.php'ye yönlendirme yapar, aksi takdirde "Parametreler mevcut değil!" dize!
Bir üstbilgi yönlendirmesi yapabilirsin, ancak hangi amaçla? –
değişkenleri kaybetmeden mi? neden olduğunu göremiyorum ama yine de html5 pushState – Popnoodles
@pekka: Yönlendirme yok, ancak GET yöntemini kullanarak bittiğinde parametreyi kaldırmak istiyorum (sadece parametreyi kaldır) – dtnder