How can I make php file work in my html file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I make php file work in my html file?

iam using Acode pro mobile... --the html file name : index.html --and the php file name: test.php All this is two file are in one folder

29th Jun 2022, 10:09 AM
‎شول اكيج‎
‎شول اكيج‎ - avatar
6 Answers
+ 2
‎شول اكيج‎ You have to make your html file to php file.
29th Jun 2022, 10:17 AM
A͢J
A͢J - avatar
+ 2
‎شول اكيج‎ Doesn't matter you can have many php files in one folder but your main file should be index.php
29th Jun 2022, 10:20 AM
A͢J
A͢J - avatar
+ 2
‎شول اكيج‎ There are two statement which allow you to include 1 php file to another php file 1 - using include 2 - using require You can also call php file on form action like: <form action = "test.php"> </form>
29th Jun 2022, 10:23 AM
A͢J
A͢J - avatar
+ 1
‎شول اكيج‎ I never did in Mobile so I can't say anything but yes on PC, you have to do like that.
29th Jun 2022, 3:14 PM
A͢J
A͢J - avatar
0
in that way I will have two php ? Right..
29th Jun 2022, 10:19 AM
‎شول اكيج‎
‎شول اكيج‎ - avatar
- 1
Did that but the run button disappeared in the app ..iam using mobile in coding..is that ok
29th Jun 2022, 10:24 AM
‎شول اكيج‎
‎شول اكيج‎ - avatar