different results , same php

From: edward hage (edha_at_xs4all.nl)
Date: 11/30/03


Date: Sun, 30 Nov 2003 16:58:11 +0100

Hello.

I am just starting out in php. First I installed Apache-server in
Windows, everything worked fine. Now in Linux and php-scripts work fine,
except this one. Seems that variables cannot be transported from one
.php file to the other.

In one file I put this:

<FORM ACTION="display.php" METHOD=POST>
<INPUT TYPE="text" name="name">
<INPUT TYPE="text" name="age">
<INPUT TYPE="submit">
</FORM>
</body>
</html>

Then display.php is started when the form is submitted. In display.php:

Hi <?php echo $name?>. You are <?php echo $age?> years old.

but for $name and $age no values are give, the same script in Windows does.

Could anybody explain this to me ?

Thanks in advance.Edward



Relevant Pages

  • Re: different results , same php
    ... Now in Linux and php-scripts work fine, ... > .php file to the other. ... Sounds like your Windows box has a less secure configuration (big ...
    (comp.lang.php)
  • Re: Popup dialog for PHP on Windows?
    ... > I'm writing scripts on Windows that are in PHP. ... > be double clicking the .php file which will run the CLI app. ... Very cool, didn't know about WinBinder! ...
    (comp.lang.php)
  • Re: PHP & Apache under windows
    ... > running the following html and php. ... The problem is not the php file itself--if you are geting the Windows ... This will output to your browser the php settings of your installation, ...
    (php.general)
  • Popup dialog for PHP on Windows?
    ... I'm writing scripts on Windows that are in PHP. ... be double clicking the .php file which will run the CLI app. ...
    (comp.lang.php)
  • Re: PHP running exec() Windows program very slow in comparison to UNIX equivalent program
    ... So, by converting a VB6 DLL into a COM and calling the COM from PHP I am able to work around the speed limitations of swetest.exe, PHP, and Windows. ... I wrote a little program in VB5 that essentially does what this other compiled C Windows program does in just one of the loops that gets executed about 140 times. ... the other thing is how long it takes to to execute the program with those statements from a command prompt. ...
    (alt.php)