简体   繁体   中英

Is it possible to set up a functioning “contact us” page using HTML/CSS?

I'm wondering if it's possible to set up a functioning "contact us" page using HTML/CSS. For example, a user can go to the "contact" page and input their email address and message to me, and I will receive their message in my email. Can you do this with just html/css? if so what would that be called? Or will have I have to use some JavaScript?

您只能使用后处理器(例如将表单元素发布到php,使用REST或服务器端反映的其他方法)或内联脚本(将其称为javascript,jquery,ajax,名称无关紧要)。

You have to use JavaScript to Just reading the values in your input fields. then you can use the mailto action

Refer : here

Another way is use the Ajax calls to send the data to a php file and then send it to your inbox using php mail function

Reference for Ajax : enter link description here

No, you WILL need PHP to push forms.

Rule of thumb: HTML/CSS --> Design and look.

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