Hi,
I've programed in different programming languages over the years and am used to a top to bottom program flow or a master control module approach. I'm currently modifying a wysiwyg online web page editor that uses the textarea to display and edit a web page.
What I'm trying to understand is how a piece of code that changes the file name where the textarea is to be saved, depending on which submit button is pressed works (I can understand the actual code).
The code that changes the file name uses the $_POST to check which button is pressed but what I'm not understanding is how this code runs when it is at the very top of the php file, outwith the html tag and the submit buttons are further down the page in the form.
Are there any tutorials that explain the program flow and the link between php and html ?
Thanks,
Peter