Developer Support »

Create a unique ID, block spam, submitting checkboxes as an array  (See more user questions)

Hi

The problem is that you have all the checkboxes with the same name. For PHP
you must enter them as an array. That means you use the same name, but
follow it with square brackets.

You have this:

<input name="pretoria" id="pretoria[0]" value=" Trevenna" type="checkbox">

Change it to this:

<input name="pretoria[]" id="pretoria[0]" value=" Trevenna" type="checkbox">

Use name="pretoria[]" for all the checkboxes.

There are instructions for this in the script.

Any questions, just let me know.

Best wishes.

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

----- Original Message -----
Sent: Tuesday, April 21, 2009 2:13 PM
Subject: Re: FormToEmail script


Sorry my mistake try this one http://www.


Quoting "FormToEmail.com"

> Hi
>
> I got a "Not Found" error for that page.
>
> Charles Sweeney
> https://formtoemail.com
> The world's easiest feedback script!
>
> ----- Original Message -----
> Sent: Sunday, April 19, 2009 11:04 AM
> Subject: Re: FormToEmail script
>
>
> Charles could you please go to this test link
> http://www. and select more than one
> item.What happens is that only one of the items thats been selected
> will be forwarded after clicking on the submit button.I will forward
> you the email Is this complicated to correct?
>
>
> Regards

>
>
> Quoting "FormToEmail.com"
>
>> That's great, ! Thanks for letting me know.
>>
>> Charles Sweeney
>> https://formtoemail.com
>> The world's easiest feedback script!
>>
>> ----- Original Message -----
>> Sent: Saturday, April 18, 2009 2:06 PM
>> Subject: Re: FormToEmail script
>>
>>
>> Thanks i tried it and it's working great!
>>
>>
>>
>>
>> Quoting "FormToEmail.com"
>>
>>> Hi
>>>
>>> Making a unique number requires the use of a database or file to store
>>> previously issued numbers. This invloves some work. As a rule, I
>>> don't do custom work.
>>>
>>> What I can give you, is code that will create a random 10 digit number,
>>> which is more or less unique.
>>>
>>> Locate this line in the script (presuming you have the free script):
>>>
>>> $subject = "FormToEmail Comments";
>>>
>>> Change it to this:
>>>
>>> $subject = "FormToEmail Comments - " . rand(1000000000,9999999999);
>>>
>>> Save the file and upload it.
>>>
>>> Any questions, just let me know.
>>>
>>> Best wishes.
>>>
>>> Charles Sweeney
>>> https://formtoemail.com
>>> The world's easiest feedback script!
>>>
>>> ----- Original Message -----
>>> Sent: Saturday, April 18, 2009 12:21 PM
>>> Subject: Re: FormToEmail script
>>>
>>>
>>>
>>> Hi Charles
>>>
>>> I am lucky not much spam at the moment.
>>>
>>> Question:
>>>
>>> Could you edit the php script for me that it generates a unique ref
>>> number in the email subject field?
>>>
>>>
>>> Regards
>>>
>>>
>>>
>>>
>>> a Quoting "FormToEmail.com"
>>>
>>>> Hi
>>>>
>>>> Depends how much spam you get. I don't use a captcha on my own
>>>> contact form.
>>>>
>>>> (sent you a test message)
>>>>
>>>> Any questions, just let me know.
>>>>
>>>> Best wishes.
>>>>
>>>> Charles Sweeney
>>>> https://formtoemail.com
>>>> The world's easiest feedback script!
>>>>
>>>> ----- Original Message -----
>>>> Sent: Tuesday, April 14, 2009 5:19 PM
>>>> Subject: Re: FormToEmail script
>>>>
>>>>
>>>> Thanks Charles i tried the free version and it works fine click on
>>>> this link to see http://www.
>>>>
>>>> What i like about this is that i can optimize my html form page for
>>>> the search engines like google etc.While the mailing part of it is
>>>> done in php(FormToEmail.php)
>>>>
>>>> My only concern about this is spamming if do'nt use captcha.