From:             kae at aals dot ch
Operating system: windows XP Workstation
PHP version:      4.3.7
PHP Bug Type:     IIS related
Bug description:  $_Get and $_Post not avaible

Description:
------------
Hello,
I've installed the IIS 5.1, Windows xp, PHP 4.3.7 exsatly how the
instruction in infos24.de and installmanual (PHP).
Now when i load a form and make an input, then with a button on this form
call the next form (form2), in this form i want display $_post or $_get
and no value is on the variable.

PHP.ini global_registers = off

When i start this form on winows Apache configuration then it's works
correct.

 

Reproduce code:
---------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Beispielformular</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD>
<form action="script.php" method="POST">
  <input type="hidden" name="secret_var" value="1">
    Vorname und Familienname:<br>
  <input type="text" name="name" value="Otto Normalverbraucher"><br>
    Passwort:<br>
  <input type="password" name="passwd"><br>
    Geschlecht:<br>
  <input type="radio" name="sex" value="m"> m&auml;nnlich<br>
  <input type="radio" name="sex" value="w"> weiblich<br>
    Hobbys:<br>
  <input type="checkbox" name="hobbys[]" value="computers"> Computer<br>
  <input type="checkbox" name="hobbys[]" value="sport"> Sport<br>
  <input type="checkbox" name="hobbys[]" value="books"> B&uuml;cher<br>
    Kommentar:<br>
  <textarea name="comment" rows="4" cols="20"></textarea><br>
<input type="submit" name="sent" value="Abschicken">
</form>
</html>

<?php
if ($_POST) {
  echo "<p>Mit der Methode POST erhaltene Daten:</p>";
  while (list($post_var, $post_value) = each($_POST))
  {
    echo $post_var." = ".$post_value."<br>";
  }
}
if ($_GET) {
  echo "<p>Mit der Methode GET erhaltene Daten:</p>";
  while (list($get_var, $get_value) = each($_GET))
  {
    echo $get_var ." = ".$get_value ."<br>";
  }
}
?>

Expected result:
----------------
null


Actual result:
--------------
all Fields and values

-- 
Edit bug report at http://bugs.php.net/?id=28911&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28911&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28911&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28911&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28911&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28911&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28911&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28911&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28911&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28911&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28911&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28911&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28911&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28911&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28911&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28911&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28911&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28911&r=float

Reply via email to