I need to know if I can do the following with JavaScript. I have a course page and when the user clicks on "Enrol Now" I want the form to pass the course name and price onto the Enrolment page and dynamically print the course name and the price on the enrolment page. The course page can be a form.

In simple steps:

<User Clicks On "Enrol Now" Button> course.html

<User is taken to enrolment page, I want to be able to pass the course name and price onto the enrolment page from course.html, and print it here> enrolment.html

Im wondering if i can use a "Hidden" Input field to define the Course name & Price in course.html and when the user clicks on "Enrol Now", which is a button, the form takes the hidden fields and uses javascript to display them on the enrolment.html page. Is it possible to do this with plain HTML, I could not think of a solution with just HTML.

Any advice would be greatly appreciated!