Results 1 to 6 of 6
-
10-14-2011, 04:15 AM #1
Junior
- Join Date
- Aug 2011
- Posts
- 192
- Thanks
- 0
- Thanked 1 Time in 1 Post
- Feedback Score
- 0
php, how to call a php file from a html file
I am wondering if you can help me.
I have a simple html site and I need to include a php file into html site.
The php file is infact a form.
thanx
-
11-26-2011, 09:16 AM #2
Freshman
- Join Date
- Apr 2010
- Posts
- 38
- Thanks
- 0
- Thanked 1 Time in 1 Post
- Feedback Score
- 0
The only way to use JavaScript to redirect the page to the PHP file.
-
12-06-2011, 02:09 AM #3
Freshman
- Join Date
- May 2011
- Posts
- 12
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
I've designed a html webpage in dreamweaver. And I've also done the php coding in a separate .php file. In my html page, I used <form action="file.php" method="post"> so, why doesn't the php work? Is there any way where I can retrieve values from textbox without using get or post or session? How can I do that?
-
12-06-2011, 08:22 AM #4
Freshman
- Join Date
- Apr 2010
- Posts
- 38
- Thanks
- 0
- Thanked 1 Time in 1 Post
- Feedback Score
- 0
The "action" property actually define the page that will handle the submitted data, GET or POST. When you submit the form the HTML page will be redirected to the action url. So without submitted data it is same as clicking a link to open the page "file.php".
You only can retrieve data by using GET or POST. But if you require not to reload the current page you can do it in two ways.
1. Using AJAX technology;
2. Using iFrame.
The following two articles will be helpful for you.
Ajax post data example and AJAX file upload using iframe
-
12-14-2011, 02:55 PM #5
Freshman
- Join Date
- Dec 2011
- Posts
- 21
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
use:
include("file.php");
require("file.php");
<form name="input" action="file.php" method="post"> ... </form>
-
04-12-2012, 05:23 AM #6
Sophomore
- Join Date
- Mar 2012
- Posts
- 144
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
you are call the php filein html file throught link. and you may call php file in php file throught include() ...
Similar Threads
-
dl file to db
By slanluc in forum Web Development - Programming & CodingReplies: 0Last Post: 10-09-2011, 02:50 AM -
How can I use an external html file for footer and header?
By paul in forum HTML / DHTMLReplies: 5Last Post: 01-07-2011, 04:58 AM -
ROR file for SEO, What is ROR?
By mastermind in forum Search Engine OptimizationReplies: 6Last Post: 06-14-2010, 03:32 AM -
How to find a pdf file is normal file or shared review file
By sunshine in forum JavaScript & AJAXReplies: 0Last Post: 01-04-2010, 11:21 AM -
HTML sitemap and XML Sitemap file
By laster001 in forum Search Engine OptimizationReplies: 9Last Post: 06-29-2009, 05:47 AM


Reply With Quote

