how to install php contact form in html site?

Mrs. Hassie

New member
Joined
Jul 27, 2024
Messages
3
Points
1
I have a html based site that needs a contact form.
I have been doing a lot of research regarding secure forms. I have been hacked before so I am paranoid. I think "fast secure contact form" is the best option because supposedly the author has blocked pretty much all ways hackers use web forms to hack sites.

but the problem is, my site's urls are all end in .html
the instructions say if you want the form to work, you have to change extensions to .php
I dont want to do that because of seo reasons

so is there a way to get the php script to work on a site with .html extensions?
 

Johnson MD

New member
Joined
Jul 27, 2024
Messages
3
Points
1
You haven't told your platform or anything though. You already have a server have I presume.
HTML forms can work on site with .html extensions. You have to specify a *.php file in forms' action attribute though. PHP has to process the input data and act accordingly (save it to DB, send it via emai, etc). After that you can make a redirect to an *.html page and the *.php won't even be visible in the process.
 
Top