简体   繁体   中英

Converting HTML site to PHP Language

Found it easy to develop a basic website using HTML Language. However, i then faced challenges in having a working contact form. Some are saying i should convert my site to PHP but am failing to do so. Is there any easier way to convert an HTML site to PHP

Tried to convert using code beautify online but not bringing out positive results

You need a server (in PHP if you want) for a contact form. This server will check what it receives and store it in a database or send you an email... it's up to you.

But, you don't need to transform your html code in a php code. You can easely add a contact form in your html code. Then, with a javascript, you send the form to an PHP API with ajax (XHR/Fetch).

And, be careful with a contact form: you will receive a lot of spams if you don't put enough security (like a re-captcha).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM