Coding to fill a textbox

By waya59

I have a profile field which I want to add data to, this textbox field is not editable to the user but I need to place a value to it for my system to use.

I have tried the examples for adding metadata that I have found but this doesn't seem to do the job.

Could someone point me in the right direction on this? Thanks for your help.