PHP to HTML

A

Anonymous

Guest
A best way to success is


http://www.computersneaker.com/pageDetails.php?pageid=15


:help:
 
PHP cannot and will not work in a .HTML or .HTM file. PHP only works in .php files.

However, HTML works fine in .php files so anything you can do in a .HTML you can do in a .PHP, plus all the added benefit of being able to use PHP... 8)
 
PHP and HTML interact a lot: PHP can generate HTML, and HTML can pass information to PHP. Before reading these faqs, it's important you learn how to retrieve variables from external sources. The manual page on this topic includes many examples as well. Pay close attention to what register_globals means to you too.
____________________________
 
as per your code, please try on .PHP file instead of .HTML file. may be it will be help.

Thanks
-------------
 
xeniar said:
PHP cannot and will not work in a .HTML or .HTM file. PHP only works in .php files.

However, HTML works fine in .php files so anything you can do in a .HTML you can do in a .PHP, plus all the added benefit of being able to use PHP... 8)

fyi that's actually not correct. You can get PHP to work in an html file by modifying your .htaccess file.
 
Back
Top