Viewing Navigation Widget

Navigation Widget



User: Guest 10 years ago
I have incorporated a contact us form, however, in order for it to work the page needs to be a .PHP as opposed to a .HTML. Is there a way to change the page extension when I click the contact us page on the navigation menu? :mrgreen:

Many thanks,
John
Edit
User: Roddy 10 years ago
I am wondering why you want to do it his way. Why not have an HTML form referencing the PHP scripts on your server?

To do what you want, it would be better to keep the page as HTML but execute PHP from it. This involves modifying the .htaccess file on the server. To allow a specific page to be executed as PHP you would add this...

[code]
AddType application/x-httpd-php .html
[/code]

This webpage gives a good explanation and instructions...

http://php.about.com/od/advancedphp/p/html_php.htm

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
Set As Best Answer
User: Guest 10 years ago
Hi Roddy,

I can't get this to work?

Do I paste that snippet of code in the header or at the start of the HTML code within the widget. I've tried both and it's not working. Can you help? The HTML code isn't working either I don't think as when I tested it with a PHP extension the form looked right although I never received the email?

Thanks,
John
Edit Set As Best Answer
User: Roddy 10 years ago
You need to put the code into the .htaccess file on your server.

If you don't know how to do this, contact your hosting service's tech support.

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
Set As Best Answer


Post Reply
You must login or signup to post.