How do you save text in a label which is set by textbox?

You will have to use a TinyDB for that.