ok
i have my main page index.php
that page controls 6 pages with in 1
like all the info for about us, contact us, privacy statement and policy, and terms all are in index.php
now I would like to add my login code to that page as well
any suggestions how I can put this code into a variable to be called when the login link is clicked.
<div align="center">
<table class="fg">
<form method="POST" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<tr>
<td class="label">Username:</td>
<td class="field"><input type="text" name="username" size="20" maxlength="20" value="<?php if (isset($_POST['username'])) { echo htmlChars($_POST['username']); } ?>"> </td>
</tr>
<tr>
<td class="label">Password:</td>
<td class="field"><input type="password" name="password" size="16" maxlength="16" value="<?php if (isset($_POST['password'])) { echo htmlChars($_POST['password']); } ?>">
<a href="forgotten_password.php">Forgotten?</a> </td>
</tr>
<tr>
<td class="label"> </td>
<td class="field"><input type="Submit" name="login" value="Login"></td>
</tr>
</form>
</table>
</div>
thats my login code, now is what I aksed even possible?