AcidRain Posted August 26, 2004 Report Share Posted August 26, 2004 (edited) <? 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 August 26, 2004 by AcidRain Link to comment Share on other sites More sharing options...
AcidRain Posted August 29, 2004 Author Report Share Posted August 29, 2004 Šīs problēmas risinājumu atradu pats, bet varbūt kāds varētu pastāstīt sīkāk, kāpēc php cgi modē saglabā POST, bet kad uzliku ISAPI, tad viss aizgāja? Link to comment Share on other sites More sharing options...
Recommended Posts