formmail

Attach file in formmail. (php formmail)

删除回忆录丶 提交于 2019-12-25 05:28:15
问题 I'm writing a mailform i php for placeing orders, and sense they have to get send a picture to me for the order to work properly, I'd like to be able to attach the file in the formmail. How shuld I do this? I have seen some different sulutions but non that I've complety understand. 回答1: You need to set the right mail-headers, and then attach the file by encoding it to whatever form you have declared in the header, like in this snippet: All you need to do here, is read the file, and encode it

Repeat email in HTML Form not the same. Why?

假如想象 提交于 2019-12-13 06:20:09
问题 I have a form on a website where a user needs to enter in their name and email twice to download something. However, the user can type two different emails in the fields, hit submit, and it will still show the success message. Why? Is there a pattern attribute I can use to accomplish this? I want the user to be forced to type in the same email twice or get the error message. This is my HTML: <form id="form" method="post" action="formmail.php" name="form" width="100%"> <input type="hidden"

PHP “Wrong referrer” error when submitting a mail form

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 08:55:38
问题 I am pretty new to php, but I am learning! I have a simple form on a client website. I am testing the form and when I click submit, I get the following error: Form Mail Script Wrong referrer (referring site). For security reasons the form can only be used, if the referring page is part of this website. Note for the Admin: Please add the name of your server to the referrer variable in the index.php configuration file: mywebsite.com Powered by Form Mail Script I am looking through the forms