Change email send

riga75 29 Dec, 2007
I have a check box and if they email came to me with hours written and I wanted to check that there was or 1 or ok.

What should I do?

Thank you

Stefano
GreyHead 30 Dec, 2007
Hi Stefano,

I'm sorry, I don't understand what you need to do. Please can you post a backup copy of your form here?

You can check if the checkbox was checked by looking at the $_POST['field_name'] for that field. It will be 1 or 'true' if the box was checked.

Bob
riga75 30 Dec, 2007

Hi Stefano,

I'm sorry, I don't understand what you need to do. Please can you post a backup copy of your form here?

You can check if the checkbox was checked by looking at the $_POST['field_name'] for that field. It will be 1 or 'true' if the box was checked.

Bob



When I arrived emails form of the value of the checkbox is "checkbox", and I want to be as 1?
Thanks
Max_admin 01 Jan, 2008
Hi Stefano,

Add the value attribute equals "1" for it

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
riga75 01 Jan, 2008

Hi Stefano,

Add the value attribute equals "1" for it

Cheers

Max



Sorry Max but where i must add it?????:dry:
GreyHead 02 Jan, 2008
Hi Stefano,
<input type="checkbox" name="xxx" value="1" . . . />
Bob
riga75 02 Jan, 2008

Hi Stefano,

<input type="checkbox" name="xxx" value="1" . . . />
Bob



Ok thanks :laugh: n°1
This topic is locked and no more replies can be posted.