Jump to content
php.lv forumi

IIS header gljuks


AcidRain

Recommended Posts

<?
session_start();
if(empty($_SESSION['test'])){
$_SESSION['test'] = '';
}
if(!empty($_POST['testb'])){
$_SESSION['test'] .= 'test';
header('Location: /test.php');
die();
}

echo '<form action="test.php" method="post">';
echo '<input type="text" name="test" />';
echo '<input type="submit" name="testb" />';
echo '</form>';
?>

 

Tātad, šis skripts nez kapēc ieloopo, jo nez kapēc saglabājas POST, pie header izpildes.

 

Web server: IIS

PHP: 4.3.8

OS: win2kserver

Edited by AcidRain
Link to comment
Share on other sites

×
×
  • Create New...