RE: [PHP-WIN] Simple Answer, but I can't see it....
| From: | Uttam | Date: | Wed, 02 Apr 2003 06:48:59 +0000 |
| Subject: | RE: [PHP-WIN] Simple Answer, but I can't see it.... | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-19242@lists.php.net to get a copy of this message | ||
* just skip the action attribute in <form> tag.
* <?PHP is not same as <?php
* put the form in else part of the if, if not already there
hth,
-----Original Message-----
From: Trystano@aol.com [mailto:Trystano@aol.com]
Sent: Tuesday, April 01, 2003 22:44
To: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Simple Answer, but I can't see it....
This is the some of the code that is contained within the PHP page...
<?php
if (isset( $_POST[ "username"] )) {
code here....
}
?>
more HTML & PHP etc...
<?PHP $self = $_SERVER[ 'PHP_SELF' ]; ?>
<form method="post" action="SessionLogin.php"></form>
<input type="text" name="username" maxlength="20"/>
<input type="password" name="password" maxlength="20"/>
<input type="submit" value="Submit"/>
</form>
?>
More HTML etc...
When the submit button is pressed the nothing happens.
Tryst