Re: Simple Answer, but I can't see it....
| From: | John | Date: | Fri, 04 Apr 2003 00:56:05 +0000 |
| Subject: | Re: Simple Answer, but I can't see it.... | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-19281@lists.php.net to get a copy of this message | ||
Assuming you have some form info inside those tags, here is what I use:
<form action="<? echo $PHP_SELF; ?>" method="POST">
blah
blah
blah
</form>
<Trystano@aol.com> wrote in message news:17f.18e9a823.2bbb1cce@aol.com...
> Hi, I have a login HTML form within a PHP page that I want to call itself
> when submitted. But when I press the submit button within the form, the
form
> doesn't load itself for some reason. I have tried two ways of solving this
> but can't get it to work. It would be great if someone could identify
where I
> have gone wrong.
>
> I have the tried the following codes:
>
> <form method="post" action="SessionLogin.php"></form>
> //SessionLogin.php
is
> the name of the actual file
>
> and...
>
> <?PHP $self = $_SERVER[ 'PHP_SELF' ]; ?>
> <form method="post" action="<?php echo $self ?>"></form>
>
> Both don't seem to work for some reason.
>
> Cheers in advance
>
> Tryst