(should be) easy questions from a beginner

From: Date: Mon, 26 Mar 2001 23:18:17 +0000
Subject: (should be) easy questions from a beginner
Groups: php.windows 
Request: Send a blank email to php-windows+get-6309@lists.php.net to get a copy of this message
1. Why when I use $PHP_SELF, I get the file referenced twice? Ex: in file hello.php I have <?php echo $PHP_SELF ; ?> and the result is: /cgi-bin/hello.phpcgi-bin/hello.php 2. I set up the following right from PHP.net FAQ: <?php while (list($var, $value) = each($HTTP_POST_VARS)) { echo "$var = $value<br>\n"; } ?> but this does nothing. The FORM that is posted has four text INPUT's. This script is called from a JavaScript function that is called from an HTML FORM submit as follows: function SubmitIt() { top.frames["myframe"].location = '/cgi-bin/hello.php' ; } I understand that php4.0.4pl1 automatically track system variable ... ? 3. I cannot get the form submit to work with the above if I set: ACTION="<?php echo /cgi-bin/hello.php ?>" And I have tried every combination of: echo /cgi-bin/hello.php echo '/cgi-bin/hello.php' echo hello.php echo 'hello.php' etc, etc, .... For reference: Athlon 1 GHz, Win98 SE, PHP 4.0.4pl1, Xitami server, Netscape 4.7 Thanks in advance, Jim Witt JWitt@BayTechEngineering.com

« previous php.windows (#6309) next »