Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Help with Populate Field?

Asked Modified Viewed 1,654 times
W
wheeler
W
Michael Wheeler
  • Member, joined since
  • Contributed 87 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
asked
Member

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.

<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,
0 replies
There are no post found.

Labels

None yet

Statistics

  • Views 0 views
  • Posts 0 posts
  • Votes 0 votes
  • Topic users 1 member

1 participant

W
W
Michael Wheeler
  • Member, joined since
  • Contributed 87 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet