Im attempting to populate a database field with a form.
Currently I have a registration page that populates the database on submit. What Im trying to do is this:
This is my username field:
$userRegistration->addColumn("loginname", "STRING_TYPE", "POST", "loginname");
I need to duplicate that entry but put it into my starting directory field. This is what I have so far:
$userRegistration->addColumn("startingdirectory", "STRING_TYPE", "POST", "startingdirectory", "{$username}");
The code above is for a hidden field in my form. I need to populate the table field named "starting directory" with the username that the user signs up with.