I have a simple form right now:
<form action='<? echo $PHP_SELF;?>' method='POST'>
Username:<input type='text' name='username'><br>
Email:<input type='text' name='email'><br>
Posts:<input type='text' name='posts'><br>
Joindate<input type='text' name='join'><br>
<input type="submit" value="Submit" />
What I need is, when the user fills his username and does one of the following:
Once he does any of the above it should automatically generate the remaining fields from the database.
The query would look like this:
$qry=mysql_query("SELECT * from user where username =`$_POST['username']`");
echo $row['posts] and so on..
After it is autogenerated he can edit the fields and submit to update the database fields.