Simple Answer, but I can't see it....
| From: | Trystano at aol dot com | Date: | Tue, 01 Apr 2003 16:48:14 +0000 |
| Subject: | Simple Answer, but I can't see it.... | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-19226@lists.php.net to get a copy of this message | ||
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