iv been looking for a fair while now, and have read thru a fair few tutorials on it yet i jsut cant get this to work

what i want is to simply have a text field, and when i press a button, it sends the variable onto the php script i have on a site, then when i press another button it loads the variable from the php script back to that text field or onto another text field

i know how to save variables onto your computer, but i just cant get saving variables to a site to work

if anyone can just tell me the php script, and the scripts to put onto the 2 buttons, that would be greatly apreciated