Re: (should be) easy questions from a beginner

From: Date: Tue, 27 Mar 2001 09:12:16 +0000
Subject: Re: (should be) easy questions from a beginner
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-6316@lists.php.net to get a copy of this message
Hi, I just made a test. <html> <head> </head> <body> <form ACTION=test2.php METHOD=post> <input TYPE=text NAME=test1> <INPUT TYPE=text NAME=test3><br> <INPUT TYPE=text NAME=hallaballuzza> <input TYPE=text NAME=wrksdrifk> <INPUT TYPE=submit NAME=submit VALUE=submit> </form> </body> </html> (sorry a bit small...) and your "while (list(..." as test2.php in the same directory works. Why do you supply the path to the action with <?php ..?> ?? For your first question I don't know. J "Jim Witt" <JWitt@BayTechEngineering.com> schrieb im Newsbeitrag news:3ABFCE39.7096837A@BayTechEngineering.com... > 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 (#6316) next »