Developer Support »

Attaching files, ignoring fields  (See more user questions)

Hi

Can your client receive other types of file from the form? The Word 2007
files should be ok. What error message is your client getting?

Have a look at this page on my support section too:

https://formtoemail.com/developersupport/not_receiving_attachments.php

I see you have this in the file input:

ALLOW="text/*"

What is it for? Do you need it? If not, I would get rid of it.

Try putting the x and y in the $fields_to_ignore array in upper case:

$fields_to_ignore =
array('Submit','submit','x','y','X','Y','recaptcha_challenge_field','recaptcha_response_field');

Any questions, just let me know.

Best wishes.

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

----- Original Message -----
Sent: Monday, September 15, 2008 11:41 AM
Subject: RE: FormToEmail-Pro


> Dear Charles
>
> I have been in touch with you on Friday last for help configuring
> formtoemail and have now most things sorted.
> However I have 2 problems still to solve and hoped you may be able to
> help,
>
> 1.Would you know why microsoft word 2007 docs cannot be sent as attached
> files,
> My client receives an error message when attempting to attach this version
> of docs.
>
> 2.The x y input, I have configured to ignore per instructions, but is
> still
> generated in the sent email.
> I have pasted that part of the configured formtoemail code and the html
> form
> code below, with the input not required in red. If you could let me know
> if
> there is something I need to change to lose these inputs, I would be very
> grateful.
>
> many thanks
>
> Formtoemailpro settings
>
>
> In the array below, list the field names that you want to be ignored.
> Enter
> the names EXACTLY as they appear on your form. An example is shown below.
> You can edit it as required but remember to put the values in quotes and
> separate them with commas. The array below is ignored if you have not
> enabled $ignore_fields above.
>
> /*
> $fields_to_ignore = array('Submit','submit', 'x', 'y',
> 'recaptcha_challenge_field','recaptcha_response_field');
>
> /*
>
> HTML form code
>
> <form action="MailEnquiry.php" method="post"
> enctype="multipart/form-data">
>
>
> <table cellpadding="0" cellspacing="0" style="margin-top:20px;">
> <tr>
> <td class="f9 t4" width="135"><b>Name:</b></td>
> <td style="padding-bottom:10px;">
> <input type="text" name="name" class="inp" style="width:164px;"/></td>
> </tr>
> <tr>
> <td class="f9 t4"><b>Email Address:</b></td>
> <td style="padding-bottom:10px;">
> <input type="text" name="email" class="inp" style="width:164px; "/></td>
> </tr>
> <tr>
> <td class="f9 t4"><b>Location:</b></td>
> <td style="padding-bottom:10px;">
> <input type="text" name="address" class="inp" style="width:164px;
> "/></td>
> </tr>
>
> <tr>
> <td class="f9 t4"><b>Message:<br></b></td>
> <td style="padding-bottom:10px;">
> <textarea name="message" class="inp" style="height:75px; overflow:auto;
> width:256px;"></textarea></td>
> </tr>
>
> <tr>
> <td class="f9 t4" width="135"><b>Attach CV:</b></td>
> <td style="padding-bottom:10px;">
> <input type="file" name="attachedfile" input class="inp"
> style="width:200px;" ALLOW="text/*"
> src="images/but2.gif"/></td>
> </tr>
> <tr>
> <td colspan="2" style="padding:10px 0px 0px 135px;">
> <input name="submit" type="image"
> src="images/but2.gif" width="128" height="34" border="0" value="Submit">
>
>
> </td>
> </tr>
> </table></FORM>