When I run the same code by typing file's address in Browser's address bar it runs perfectly.But when I run it via html file code doesn't work.The part within doesn't work whereas the code outside this tag is displayed. THis is my php codeThis is the output
Asked
Active
Viewed 23 times
0
-
1If you inspect the source, do you see the PHP-code as its written? – Qirel May 18 '17 at 16:16
-
1Is it uploaded to a web server? PHP requires a web server to be run, it cannot run locally. – Carter May 18 '17 at 16:17
-
Yes..I see the exact php code as written @Qirel – Animesh Pandey May 19 '17 at 15:01
-
Yes..I am uisng XAMPP @Carter – Animesh Pandey May 19 '17 at 15:01