* 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 22:44
To: [EMAIL PROTECTED]
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


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to