|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2005-07-12 16:03 UTC] rasmus@php.net
  [2005-07-12 16:04 UTC] joerg@php.net
  [2005-07-12 16:12 UTC] rasmus@php.net
  [2005-07-12 16:16 UTC] f dot hardy at origami-systems dot com
  [2005-07-12 16:47 UTC] sniper@php.net
  [2005-07-20 01:00 UTC] php-bugs at lists dot php dot net
  [2007-08-01 05:50 UTC] shellva_s at yahoo dot co dot in
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 18:00:01 2025 UTC | 
Description: ------------ I have a problem with $_POST and the header() function. If I make a test on $_POST, my 404 http header is replaced by a 2OO OK header. If I make a test on $_GET (with a get action in html form), or an another variable, I receive the 404 http header. Reproduce code: --------------- <?php if (isset($_POST['test']) == true) { header("HTTP/1.1 404 Not Found", true); die(); } else { ?> <form method="post"> <input type="text" name="test" value="" /> <input type="submit" name="modify" value="Modify" /> </form> <?php } ?> Expected result: ---------------- A 404 HTTP header in response. Actual result: -------------- A 200 OK HTTP header in response.