Reply to problem with header()

Your name:

Reply:


Posted by Leszek on 06/14/06 22:33

Hi.
I wrote form in html and script php for it (all in one file - index.php)

//index.php

//some if statements to set $dobry to true or false
....
//here is the if statement that isn't working properly
if($dobry==TRUE){
session_start();
$_SESSION['strona1']=base64_encode(serialize($_POST));
header("Location:
http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/wyszukiwanie.php");
exit();
}
else{
header("Location:
http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/bladdanych.php");
exit();
}
//and after is form in html

The problem is that $dobry is true and i'm not going to wyszukiwanie.php.
I'm getting blank page index.php
Could you tell me what am I doing wrong?

Thanks for help.
Leszek

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация