Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 8th, 2007, 10:17 AM
Registered User
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems with $_GET and $_POST

Hi
    I am having a problem with the global arrays in PHP 5.0.27. I have a script that uses the $_GET and $_POST arrays. The page is designed to be recursive. The first time through the script when some local variables need to be set I am getting error messages. The intent of the first run is just to present the basic page and allow for log on to the site. The variables are set in the fashion $script_value = $_POST[‘value I want’];. This produces the error “invalid index in” yada yada yada script.php line 15. I can understand that, but when I call the page again this time with a POST value I still get the error message. I am running PHP on a Windows 2000 box with IIS 5.0 ---- forgive me but if I can get this script to run on windows anything should else should be a breeze. Also get the error message if I put the value in the url query string. Seems that PHP is not reading the $_POST or $_GET arrays. The just in time setting is on in the php.ini file and the other global settings are off which I understand is required for the just in time setting to work. I am at a loss, any ideas? Thanks.

everetts


 
Old March 18th, 2007, 03:44 AM
Registered User
 
Join Date: Mar 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi everetts,

Can you give us some code to look at?

Ciao MvO






Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference b/w $_GET & $_HTTP_GET_VARS ashuphp Beginning PHP 1 April 14th, 2007 08:50 AM
$_GET sudheshna Beginning PHP 1 February 18th, 2006 05:22 AM
php $_GET samon_18 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 December 24th, 2005 07:39 PM
php _get and undeclared variables wolferd1 Beginning PHP 10 January 23rd, 2005 10:31 PM
How to use $_GET with arrays? pseudo class Beginning PHP 6 November 20th, 2004 02:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.