Ginn wrote:Btw, hope that you dont mind that I used your name in the post.
I remembered that i posted this sentence in another post, so you just quoted me to get an answer on a question.
Altrea wrote:There is NO reason to put php code into html files. Thats just sloppy programming.
Sloppy programming. But the pages have to fit the website's style.. So how could I do it then?
Very easy! You can use HTML and CSS in your PHP Pages too. You can style them as every normal HTML page.
The reason why Pages with PHP code in it must have a .php extension is that your Apache is by default configured to send .php Pages through the php parser, html pages just bypass the Apache and are send directly to the browser. The PHP-Parser don't get .html files so php code will not be executed.
Okay. To solve your Problem, we have to start at the very beginning.
- Check if your Apache is running (open your XAMPP control panel. There had to be a green running label next to the Apache start/stop Button)
- If your Apache is running, check if you can start your browser and request http://localhost/
. You should see the XAMPP backend screen (or a language choice).
- If you can see the XAMPP backend, try the phpinfo() link in your XAMPP Backend. This is just a test to see, if Apache and PHP are working correct.
If these checks are successful, the reason for your problem is either your script(s) or the way you request your scripts.
So, you should post your sourcecodes of the two scripts (form and receiver). Please use the "Code BB-Code" if you post your code here.