I've spent a couple of hours fiddling with this problem with no luck. What I am trying to do is align the Welcome text in the middle of the screen and the Update Profile button on the same line but to the right. This would seem a simple job but everytime I try <center> and <div align='right', it places them in the right places but on seperate lines.
I've tried the white space symbol to line them up, but while it works fine on my current resolution, I know it won't look right on different resolutions. Code below:
while($row = mysql_fetch_array($result))
{
echo "<form method='POST' action='profile.php'>
Welcome " . $row['firstname'] . ' ' . $row['lastname'] . '';
echo "<input type='hidden' name='username' value='$entered_username'>
<input type='hidden' name='password' value='$entered_password'>
<input type='submit' value='Update Profile'>
</form>";
}
Next problem is this. On the Update Profile page I want to fill out all the fields with the details of the member currently logged on. This I've managed without any problems except the password field. I am using the code below but the password is echoed in the encrypted version. I added the md5 function to it as well but that just added the text md5 to the text box.
Any suggestions?
<input type='text' name='username' value='$row[username]' size='31'</p>
<p align='center'>Desired Password: <input type='text' name='password' value='md5($row[password])' size='31'</p>