+ 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?
9 Respostas
+ 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.
+ 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
+ 5
html form
+ 5
GAWEN STEASY I make it in my computer
+ 4
Kkmikaze Khun what is the "DBMS"?
+ 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.
+ 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.
+ 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.
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.