Get/Post variables not showing under windows

From: Guillaume Dargaud (noNOspamSP_at_Mgdargaud.net)
Date: 08/30/04


Date: Mon, 30 Aug 2004 10:23:43 +0200

Hello all,
I'm quite rusty with PHP and have a little issue.
A script transmit parameters to itself through a simple form. It works fine when I run it on a
production server (Linux+Apache+PHP4).
When I run the same script on my development machine (Win2K+Apache2+PHP5) the submited variables
don't show.

Here's some simplified code:

<HTML>
<BODY>

<?php
print_r ($_SERVER);
print_r ($submit);

switch ($submit) {
 // ...
}
?>

<FORM METHOD=Get>Display content of:<BR>
 <INPUT TYPE=submit NAME=submit VALUE=APACD1>
 <INPUT TYPE=submit NAME=submit VALUE=APACD2>
// ...
 </FORM>

</BODY>
</HTML>

In the $_SERVER I see a correct query string with $submit.
I'm thinking about some server misconfig on windows.

-- 
Guillaume Dargaud
http://www.gdargaud.net/
  "A closed mouth gathers no feet."


Relevant Pages

  • Re: Get/Post variables not showing under windows
    ... "Guillaume Dargaud" wrote in message ... > I'm quite rusty with PHP and have a little issue. ... > A script transmit parameters to itself through a simple form. ... > In the $_SERVER I see a correct query string with $submit. ...
    (comp.lang.php)
  • Re: OT: Q: Anyone know PHP well?
    ... PHP code does not work. ... installed / configured on the server for PHP to function properly? ... been over 4 years since I wrote the code, and uploaded to my old host. ... So, needless to say, I am very, very rusty with the ins and outs of PHP. ...
    (rec.games.pinball)
  • Re: PHP Instalation problems. Browser doesnt know what to do
    ... This is loaded and run as a local server (for class ... PHP 5.2.0 from php-5.2.0-win32-installer.msi ... # configuration directives that give the server its instructions. ...
    (comp.lang.php)
  • Re: PHP Instalation problems. Browser doesnt know what to do
    ... This is loaded and run as a local server (for class ... PHP 5.2.0 from php-5.2.0-win32-installer.msi ... # configuration directives that give the server its instructions. ...
    (comp.lang.php)
  • Re: write with cURL
    ... execute permissions. ... This is assuming that the PHP script runs ... of potential security risks from other users on the same server. ... Apache as the global web server user and thus needs world write ...
    (alt.php)