Re: Form variables don't come through on new installation

From: Date: Fri, 13 Feb 2004 21:39:22 +0000
Subject: Re: Form variables don't come through on new installation
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-12767@lists.php.net to get a copy of this message
Cliff Addy wrote: Try as I said before. abc.cgi?act=4&pass=def #!/usr/local/bin/php
<?php                         //    <--- make sure you substitute  <?  for  <?php
$act = HTTP_GET_VARS['act']; ... code ... ?> this way you can do: echo "-- act: $act -- ";
I'm porting some php cgi scripts from our old web server to a new one. In know zip about php and didn't create these. I'm finding that php scripts on the new server aren't getting form variables passed into them. I built 4.3.4 straight, no options, just configure/make/make install. The system is built calling php as a #! line, e.g. #!/usr/local/bin/php <? ... code ... ?> The scripts call each other with arguments like abc.cgi?act=4&pass=def What I find is that when I print out the passed variables, e.g. print ("$act"); I get nothing, as if the script is not parsing the passed variables at all. The system works fine on the old server using 3.0.12, is there something I need to set in the new build for it to act properly as a cgi interpreter? A php -v gives: PHP 4.3.4 (cgi) (built: Jan 29 2004 11:14:46) Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies Cliff
-- ---------------------------------- Jorge Alberto Reteguín Pimentel jorge@reteguin.com

« previous php.install (#12767) next »