i'm trying to make an html form ....there is no proplem in the html code but.. when i refer the form action tag to my learnphp.php file and click submit it shows the whole code like this pic please help... [1]: https://i.stack.imgur.com/AgVXQ.jpg i will be very happy if you solved this for me.....
Asked
Active
Viewed 38 times
-3
-
3Possible duplicate of [PHP code is not being executed, instead code shows on the page](https://stackoverflow.com/questions/5121495/php-code-is-not-being-executed-instead-code-shows-on-the-page) – user3942918 Aug 21 '17 at 02:29
2 Answers
0
does your xampp or wamp on ? check it

Barclick Flores Velasquez
- 673
- 6
- 12
-
i didn't install xampp but i'm installing it right now....can you tell me what is xampp is made for.....(thank you so much for your helpful comment – Ahmed Galal Aug 21 '17 at 15:02
-
my xampp is on and i put the php file in htdocs and the same proplem happens – Ahmed Galal Aug 23 '17 at 16:48
0
you are not putting the php file in right folder. localhost file should be on c:xampp/htdocs in xampp when running php file.
you should run it by localhost::folder_name/php.php

Nahid Hasan
- 687
- 1
- 10
- 34
-
thank you so much i didn't know that i should install xampp to code php i will install it right now and get back to you .....(i'm a beginner btw) – Ahmed Galal Aug 21 '17 at 15:00
-
thank you so much for your help ......but one more question please .... when i try to run apache in xampp it says api-ms-win-crt-runtime-l1-1-0.dll is missing and i've downloaded this file and same shit happens every time – Ahmed Galal Aug 21 '17 at 17:47