I'm working on a personal project of bootstrap and wanted to experiment with some PHP. I first build out my static website and now I'm adding the PHP. The first thing I wanted to get done is the registration form. Now whithout the PHP tag ( ) everything looks just fine. But as soon as I add the tags into the source code ( even without any code ) the webpage just shows the entire sourcecode in the browser.
Sounds like you are not accessing the file through xampp but directly instead. you need to open the page via the URL. (i.e. http://localhost/index.php
)