0
How to link html and PHP in a web
So that it should give response.if you like this question please give up vote and give a correct answer
5 odpowiedzi
+ 3
<?php include 'filename.php' ?> (but first save ur php file in the same directory where u have samed ur html file)
+ 3
And this answer is for the comments "Learn php first":
He is learning php, but he doesn't know (or haven't gone through)how to use GET method, or action attributes. So u guys might give him a solution, bt......
Why this " Learn PHP first"? He wants to implement what he learnt? So where is wrong?
+ 2
If you want to process form data in a separate PHP file you can just put the file url in form action
Or you can just embedd your whole HTML in the PHP file
+ 1
learn PHP first