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" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
> [EMAIL PROTECTED]
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to