I think you really need to learn how HTML and javaScript work.
How to use an ID to modify an element (like put text into it).
How to send data from the current page to a new page.
Really, just how the whole thing works.
You may wish to use the tutorials found here:
W3Schools Online Web Tutorials[
^]
You must understand these things in order to do any sort of web programming.