Developer Support »

Prepopulating a single checkbox  (See more user questions)

That worked!

Thanks,

On Wed, Sep 8, 2010 at 5:58 AM, FormToEmail.com wrote:

> Hi .
>
> Understood.
>
> I have deleted your last-but-one email and don't have your file. Can you
> attach it again, or just paste in the code in question?
>
> Without looking at it. If it's just a single checkbox, you might be better
> to name it WITHOUT the square brackets (which are used for an array with
> multiple values). As you noted, using my sample code for checkboxes, you
> will get the error about the array, but instead use the same code you would
> use for a text input, like:
>
> <input type="checkbox" name="fruit" value="apple" <?php
> if(isset($fruit)){print " checked=\"checked\"";} ?>>Apple
>
>
> Best wishes.
>
> Charles Sweeney
> https://formtoemail.com
> The world's easiest feedback script!
>
> ----- Original Message ----- From:
> Sent: Wednesday, September 08, 2010 6:40 AM
> Subject: Re: FormToEmail script
>
>
>
> Charles-
>>
>> I just wanted to make sure you understood what I was talking about. At
>> the
>> very bottom of the Criminal Convictions section there is a single check
>> box
>> with the following text: IF HIRED, I WILL PROVIDE PROOF...
>>
>> I tried with and without the brackets. Without the brackets if I check it
>> and then hit submit I get that old error that I was getting before. If I
>> put the brackets and check the box and then hit submit it doesn't retain
>> the
>> checked status.
>>
>> Any ideas as to why this is?
>>
>> Thanks for the continued support