Forum Moderators: coopster

Message Too Old, No Replies

Cannot get $_GET or $_POST arrays to work

         

albroun

10:20 am on Jun 21, 2004 (gmt 0)

10+ Year Member



Hi

I have installed Apache / MySQl / PHP on my Win 98 pc using EasyPHP. I chose EasyPHP because it is the smallest installer I could find for the whole package, and I have limited disk space and a slow dial-up connection (no broadband here!).

However, I think it has installed an older version of PHP than current, and I cannot get the $_GET or $_POST arrays to work although they do on another machine using the same code.

Is there a simple modification to the PHP ini file that would do the trick or would I better to uninstall the whole package and start again with a manual installation process?

Thanks

tomda

11:08 am on Jun 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

Last version of EasyPHP is EasyPHP1.7 and it contains Apache 1.3.27, PHP4.3.3, PhpMyadmin 2.53 and MySQL 4.0.15.
Note also that this last version is GLOBAL OFF.

I never had problem with POST or GET array.
Make sure that if you use form, the name of your input is something like name='value[]'.

Here an example of what the script I used (on EasyPHP)

if(isset($_POST["value"])) {$value_array=$_POST["value"]; } else {$value_array=null;}
$count_value=count($value_array);

Hope this help

Tommy

albroun

11:34 am on Jun 21, 2004 (gmt 0)

10+ Year Member



Thanks

I also gather that you can use the deprecated $HTTP_GET_VARS and $HTTP_POST_VARS

Dont know why I ended up with 1.5 instead of 1.7! May just uninstall / reinstall, and turn Global on.