Whenever I try to use $_POST, $_GET and $_SERVER, I get the error message:
Fatal error: Call to undefined function: array()
I have read in several examples that these should allow me to access form and querystring data but I cannot for the life of me make them work.
Any ideas why this is? Do I need to define something somewhere to make these arrays work.
Cheers in advance.
[SOLVED] Errors when using $_POST, $_GET and $_SERVER arrays
Moderator: General Moderators
[SOLVED] Errors when using $_POST, $_GET and $_SERVER arrays
Last edited by Critta on Sat Jun 25, 2005 8:42 am, edited 1 time in total.
are you able to define arrays? try the following
Code: Select all
<?php
$array = array(1, 1, 1, 1, 1, 8 => 1, 4 => 1, 19, 3 => 13);
print_r($array);
?>- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US