How to pass an array to a form which is above the part where the array is created
I have a php script with html in it. The page is divided into blocks using div tags. There is a form in a div tag which is at the top which needs id generated by a sql query in a div tag below it. Changing the positions of div tag will change the entire look of the page.