html input type hidden value variable
Save your draft before refreshing this page.Submit any pending changes before refreshing this page. Hide this message.instead of HTML as parent tag, we echo everything inside PHP as parent tag. so your solution would be. . And then when you want to assign its value: Document.getElementById(myField). value product(2, 3) Make sure that you are performing this assignment after the DOM has been fully loaded, for example in the input type"submit" value"Go To Step 3"> . Please note that although the hidden fields are not visible to the visitor, they are visible in source of the page, so you must not use them to store critical information.