Okay.
Here's my scenario.
I am currently trying to write a profile script, for users to update their profile as they see fit.
I wish to echo the current values of each field into textboxes and then the user can leave them or update them as neccessary.
I can echo session variables into the textboxes, but was wondering if I can look up the user in the database, extract all the fields for that particular user and display these in their relevant textboxes.
Also, would using sessions for every variable be allright? If it is an appropriate way to acheive my aim, then I will use this way.
Below is the beginning section of my code:
function edit_profile_form()
{
$username = $_SESSION['username'];
echo"
<form action=\"?cmd=profile_parser\" method=\"post\">
Username: <input type=\"text\" name=\"username\" size=\"20\", maxlength=\"20\", value=\"$username\"><br />