By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,408 Members | 1,576 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,408 IT Pros & Developers. It's quick & easy.

execute php in html without using post?

P: n/a
I want to display some of the text from php in HTML without using POST
For example: Hello.php
echo "hello ";

If i want to display Hello in main.html, How can i do that?

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
¿without using POST method?
post is used to submit form data.
generally .html files are not parsed by the web server.

any reason you can't rename main.html to main.php?
and then you could either do your echoing directly in main.php or
include 'Hello.php';

Jul 17 '05 #2

P: n/a
Since HTML pages are completely static you are going to struggle to
write a variable from one .php page onto a .html page. You could use
sessions to pass along the text, or the GET method.

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.