Developer Support »

From: email not showing, uploading files.  (See more user questions)

Hi

My pleasure to assist.

The info I gave you, below, will fix the From: name/address issue.

Any questions, just let me know.

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Saturday, July 11, 2009 6:33 PM
Subject: Re: FormToEmail-Pro script


> Charles,
>
> Thanks for the quick and thorough response!
>
> I am using spry data set fields from DW CS4 which has allowed me, a
> non-coder limited web experience, create my for quickly and easily
> while allowing me to put certain requirements on each filed. The
> reason for using separate "First & Last Name" fields is for exporting
> into a spreadsheet and ease of viewing. For some pecular reason DW
> Spry does not give the option to make the "Upload Fields" required,
> which prompted my email to you.
>
> I am also having the "From" issue in the message header, see attached
> file.
>
> Thanks for your help!!!
>
>
> Cheers,

>
>
> On Jul 9, 2009, at 3:26 PM, FormToEmail.com wrote:
>
> Hi
>
> Thank you for giving me a reason to check out your site!
>
> You have 64 validation errors on your form page, which could give
> problems in some browsers, particularly when using spaces in field
> names, as your form does:
>
> http://validator.w3.org/
>
> Is there a reason for the XHTML doctype? If you don't need it, use a
> plain HTML one. This will certainly play better with the spaces in
> the field names if there are validation errors on your form code.
>
> To make a file upload field required, just put the field name in the
> list of required fields in the script. First you need to enable
> checking for required fields, like so:
>
> $required_fields_check = 1;
>
> Then put the field name(s) in the required fields array, like so (for
> example):
>
> $required_fields = array('name','email','comments','Upload Image 1');
>
> (note the required fields are in quotes and separated with a comma)
>
> There are instructions in the script for this.
>
> I see you are also using JavaScript to check for required fields. I
> don't do JavaScript, so can't say if there are any issues there.
> Personally I would just use the check in the script. Also I wouldn't
> use spaces in the field names, I would use underscores.
>
> The From: email address and name should show if the email field is
> named "email" and the name field is named "name". I see your email
> field is named "email" so no problems there, you should get the
> visitor's email address in the From: field.
>
> To get the first name to show in the From: header in the email, change
> the first name input on your form from "first name" to "name". OR to
> get the first AND last name to show in the From: header, change this
> line in the script:
>
> if(isset($_REQUEST['name']) && !empty($_REQUEST['name'])){$from_name =
> stripslashes($_REQUEST['name']); if($encode_name_subject){$from_name =
> "=?{$character_set}?B?".base64_encode($_REQUEST['name'])."?=";}}
>
> to this:
>
> if(isset($_REQUEST['first name']) && !empty($_REQUEST['first name']))
> {$from_name = stripslashes($_REQUEST['first name']." ".$_REQUEST['last
> name']); if($encode_name_subject){$from_name = "=?{$character_set}?
> B?".base64_encode($_REQUEST['first name'])."?=";}}
>
> Any questions, just let me know.
>
> Best wishes.
>
> Charles Sweeney
> https://formtoemail.com
> The world's easiest feedback script!
>
> ----- Original Message -----
> Sent: Thursday, July 09, 2009 5:41 PM
> Subject: FormToEmail script
>
>
>> Comments: I purchased your script and it has been working quite well
>> but I have a couple of questions.
>>
>> 1. How can I make a file upload field required?
>>
>> 2. The "From" in the email does not come through in the header on
>> "<>"? I know there is a section that somewhat describes this issue
>> but my form has separate fields for the First & Last names.
>>
>> I use Dreamweaver CS4 and my form can be found here:
>>
>> http://www.
>>
>> Thanks!
>>
>> Cheers,