Record user input on web form using php

Hi guys,

I am building a webapp testing program and in my program, I need to be able to do the following:

  1. The user clicks on the hyperlink and opens up the webpage that he wants to test.

  2. The user clicks on the ‘record’ button and inputs the value into all the fields(textbox, radiobutton etc.)

  3. The user submits the form and exit. The next time when he returns, he can reload the values that he keyed in by clicking the ‘load’ button.

Anyone here knows how this can be done, or knows of any good tutorials or even open-source that can do this? Thanks in advance.