A PHP file (reg.PHP) contains both an HTML form which sends data to reg.PHP and PHP code which is used to process the form data. If the HTML form code comes after the PHP code in reg.PHP how can the PHP work when it doesn't have the form data?
valid question