why the php is not linking and working in form? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 10

why the php is not linking and working in form?

I opoen my html form in the google chrome but when I submit that the google chrome return the source code and not the output. What can I do?

3rd May 2019, 5:19 AM
Ocram Co
Ocram Co - avatar
9 Answers
+ 1
Illuminati_ Programmer I think he is confused. DBMS means Database Management System which has nothing to do with your question and his own point. Anyway, to start learning PHP, try installing XAMPP. It is a bundle of webserver, database and php. Go to https://www.apachefriends.org/download.html and download whichever your version of operating system is.
13th May 2019, 5:13 AM
Arctic Fox šŸ¦Š [ off | work ]
Arctic Fox šŸ¦Š [ off | work ] - avatar
+ 9
Ipang by google he possibly means by executing code in google chrome via any text editor and face source code due to error in code. Illuminati_ Programmer firstly it's can be possible because your php is not according to the form fields. 1) first thing to know is that your php GET function and SET both are using with the fields have same name defined in the form made in html 2) may be the connection code of database is not working or connect properly and the database field name is too same as mentioned in the database tables 3) there may be chance that what code you have write it any linked bootstrap, css, or javascript may be not linked correctly so that can possible that's why it is returning the whole source code as no working is executed by the code So please share your code first here then we can give answer accordingly
3rd May 2019, 11:42 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 5
html form
3rd May 2019, 2:47 PM
Ocram Co
Ocram Co - avatar
+ 5
GAWEN STEASY I make it in my computer
3rd May 2019, 2:49 PM
Ocram Co
Ocram Co - avatar
+ 4
Kkmikaze Khun what is the "DBMS"?
13th May 2019, 5:05 AM
Ocram Co
Ocram Co - avatar
+ 3
I think because, PHP is Server-side scripting. If you want to display the output of the script, try activating Apache. For activating Apache, you can use the DBMS like Xampp, Mamp, Lamp, etc.
11th May 2019, 3:31 PM
Kkmikaze Khun
Kkmikaze Khun - avatar
+ 2
You need to host it in a webserver. Opening the HTML directly on web browser will display normally, but once you interact (submit form to php) then the php is shown as text instead of being interpreted. Because your browser can not interpret it.
13th May 2019, 1:53 AM
Arctic Fox šŸ¦Š [ off | work ]
Arctic Fox šŸ¦Š [ off | work ] - avatar
+ 1
You said: "I open my html form in the Google ..." Are you asking a question in regards to PHP or Google form? I don't really understand what you mean here ... maybe you can get better response if you just add your code link on your question Description.
3rd May 2019, 6:39 AM
Ipang
0
Yes it's possible GAWEN STEASY it's just the question was poorly written and no confirmation from the OP side. I hope the OP would link their code to clarify the actual issue šŸ‘ Ipang welcome and yes very poorly written post, anyway I'm editing the post to clarify as user is not here for while thanks for mentioning.
3rd May 2019, 1:31 PM
Ipang