dongshou1856 2015-05-18 13:10
浏览 55

PHP / Javascript / HTML联系表单在计算机上本地工作吗? 或者仅当它在Web服务器上时才起作用? [关闭]

2 questions:

  1. I am using a PHP/Javascript/HTML Contact Form for a website and it seems to refresh the page whenever I hit the submit button. Is this normal when working with HTML files offline?

  2. When defining $header for "From" and "Reply-To", would they be the same in a contact form? EX: The person submitting is the person sending so they are from and if the web master wishes to reply, it goes to the person who sent it?

Thanks!

  • 写回答

2条回答 默认 最新

  • dongwen2162 2015-05-18 13:15
    关注
    1. You can install something like WAMP or XAMPP (Windows) or MAMP (Mac) to run PHP on your local machine. There are lots of tutorials online to setting these up.

    2. The "From" defines who the originating email is from and the reply-to is who the message will go-to by default when clicking "Reply". These are typically the same values, but can be different if needed

    EDIT: One more thing, you can use Test Mail Server Tool when developing locally to grab emails, since your computer likely won't be able to send them out http://www.toolheap.com/test-mail-server-tool/

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据