globalrogue Posted November 2, 2006 Share Posted November 2, 2006 Help Please!!!System: Win XP Pro sp2PHP: 5.1.6Apache: 2.0.59I have PHP mostly running on my system but am having issues using PHP's superglobals, I keep running really basic scripts but keep getting the above or similar error for $_GET[]. Is there anything in the setups that I need to change to be able to use these?Script 1 - I've also tried it with the POST method<html> <head> <title>supertest1.php </title> </head> <body> <form name="input" action="supertest2.php" method="get"> <input type="text" name="rar"> <input type="submit" name="submit" value="submit"> </form> </body></html>Script 2<html> <head> <title>supertest2.php </title> </head> <body> <?php echo "<br>Get: ".$_Get['rar']; echo "<br>Post: ".$_Post['rar']; echo "<br>Request: ".$_Request['rar']; echo "<br>Field Value: ".$rar; ?> </body></html>So, if you see a problem with my scripts, please let me know. If it's something else...I'm open to any ideas.Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/25886-php-notice-undefined-variable-_post/ Share on other sites More sharing options...
wildteen88 Posted November 2, 2006 Share Posted November 2, 2006 Superglobals are all uppercase they are not mixed case. Variables are case sensitive. So $_Get is the not the same as $_GET. PHP will treat $_Get completely different to $_GETSo $_Get should be $_GET$_Post should be $_POST$_Request should be $_REQUEST Quote Link to comment https://forums.phpfreaks.com/topic/25886-php-notice-undefined-variable-_post/#findComment-118574 Share on other sites More sharing options...
globalrogue Posted November 2, 2006 Author Share Posted November 2, 2006 Doh! Thank you great one for pointing out the obvious! :D Quote Link to comment https://forums.phpfreaks.com/topic/25886-php-notice-undefined-variable-_post/#findComment-118577 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.