![]() | | ||||||||
| | #1 |
| Warrior Member Join Date: Nov 2009
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
|
I have a html-page (contact.html) and i want to put on that page a contact form (index.php). I have tried two things. 1) include in contact.html: <?php include("index.php"); ?> --> no result, blank page 2) copy the code from index.php in contact.html: <?php /* php code from index.php */ ?> --> the code is shown and not the contact form What is the problem? When I open index.php directly in the browser there is no problem. |
| | |
| | |
| | #2 |
| Coding Expert !! :D War Room Member Join Date: May 2009 Location: India
Posts: 178
Thanks: 14
Thanked 15 Times in 12 Posts
|
Save the contact.html as contact.php that should do it... and then you can include the index.php and also do the other option as well. Prateek |
| | |
| | |
| | #3 |
| HyperActive Warrior War Room Member Join Date: Sep 2009 Location: Canada
Posts: 137
Thanks: 4
Thanked 35 Times in 18 Posts
|
or you can edit your .htaccess file and tell the server to treat html as if it was a php page. but as pdjsolutions, changing your page to have a php extension will get it working |
| VisualWebEffects- Web Application Development, PC Software Development and Identity Design services
| |
| | |
![]() |
|
| Tags |
| html, php |
| Thread Tools | |
| |
![]() |