RE: FOrm processing question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I didn't notice if someone had replied to this yet or not, but sounds
like a classic globals issue.  Check your PHP.INI to see if you have
globals turned on?  I'm guessing you do for the Unix system but not on
the Windows box.
 
In PHP.INI (make sure you're looking at the same PHP.INI that PHP is
using):
register_globals = Off
 
It's good security to turn them off, then just use:
 
$formvariable = $_GET["formvariable"];
or
$formvariable = $_POST["formvariable"];
or
$formvariable = $_REQUEST["formvariable"];
 
Without seeing your code, it's hard to make any other guesses as to what
could be wrong.
 
Hope that helps.
 
-TG

	-----Original Message-----
	From: anne [mailto:anne@xxxxxxxxxxxxxxxxxx] 
	Sent: Wednesday, August 11, 2004 10:06 AM
	To: php-windows@xxxxxxxxxxxxx
	Subject:  FOrm processing question
	
	
	Trying this again. IT makes no sense that from one page to the
next the variable values are not being carried. They are in Unix, just
not in the code on windows? How do you process form data normally?
	
	
	
	-------Original Message-------
	> From: Anne Shroeder <anne@xxxxxxxxxxxxxxxxxx>
	> Subject:  Variables not passed through form
	> Sent: 09 Aug 2004 21:36:23
	>
	> I've always used PHP on *Nix platforms.  So I'm assuming that
this is a
	> 
	> windows issue.  Here is identical code
	> 
	> (1) on an MS server:
	> 
	> http://www.cgapdirect.org/annes/ProductCosting/contribute.php
	> 
	> (2) on a Linux sever:
	> 
	> http://www.language-works.com/cgap/contribute.php
	> 
	> 
	> 
	> The form variable values are displayed at the bottom of the
page in (2) but
	> 
	> (1) ignores them entirely.  Why?
	> 
	> 
	> 
	> Anne
	> 
	> 
	> 
	> --
	> 
	> PHP Windows Mailing List (http://www.php.net/)
	> 
	> To unsubscribe, visit: http://www.php.net/unsub.php
	-------Original Message-------
	
	
	


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux