+ 1

I have written php code for my html form but it does not work instead it shows the code while submitting the form.

I have xampp server installed on my pc.When i write php code and save it in htdocs folder in xampp folder.It runs lonely but when i code a php file for my html form and attach it, it does not execute instead it shows the code.I have a database made with mysql.I want my php code to save the form data in my database. when i tried to take the form data and show it with the help of php code while form is submitted,it executes each part of php code but the form data still not prints on web browser.

24th Sep 2017, 12:13 PM
Satyam Mishra
3 Réponses
+ 5
Have you checked your apache server is running or not?
24th Sep 2017, 12:25 PM
Rick
Rick - avatar
+ 3
Show the code please.
24th Sep 2017, 12:20 PM
Calviղ
Calviղ - avatar
+ 2
Open localhost, you would see XAMPP for Windows page, if the Apache service was started.
24th Sep 2017, 12:42 PM
Calviղ
Calviղ - avatar