Hi,
I basically have a html form that i would like to auto populate with the username of the member logged into my site, this is in a seperate folder and is in html, at current i have the form working etc but it wont show the username,
When i include the file within PHP Fusion, for example a custom page - it works, so ive added stuff such as including the maincore.php within the html file and it still doesnt work,
Could anyone help, Much appreciated.
The part i need help with is the default value of the field.
Code<table cellspacing="0" id="login-form">
<tbody>
<tr>
<td>
<p>Welcome to my Chat Room!</p>
<p><label for="username">Username:</label> <input type="text" name="username" id="username" value="<?php echo ($userdata['user_name']); ?>" maxlength="20"> <input type="submit" value="Login"></p>
<p id="error"></p>
</td>
</tr>
</tbody>
</table>
Merged on Jul 10 2012 at 12:00:01:
Nethermind! All sorted.
Edited by wheeler on 10-07-2012 12:00
Michael Wheeler
|