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($_POS T));
header("Locatio n:
http://".$_SERVER['HTTP_HOST'].dirname($_SERV ER['PHP_SELF'])."/wyszukiwanie.ph p");
exit();
}
else{
header("Locatio n:
http://".$_SERVER['HTTP_HOST'].dirname($_SERV ER['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.ph p.
I'm getting blank page index.php
Could you tell me what am I doing wrong?
Thanks for help.
Leszek
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($_POS T));
header("Locatio n:
http://".$_SERVER['HTTP_HOST'].dirname($_SERV ER['PHP_SELF'])."/wyszukiwanie.ph p");
exit();
}
else{
header("Locatio n:
http://".$_SERVER['HTTP_HOST'].dirname($_SERV ER['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.ph p.
I'm getting blank page index.php
Could you tell me what am I doing wrong?
Thanks for help.
Leszek
Comment