dazz_club 250+ Club

Joined: 15 Jul 2005 Posts: 313 Location: Chester and Hull
|
Posted: Wed Mar 22, 2006 11:31 am Post subject: catching data from a checkboc component |
|
|
Hi people,
I have a checkbox on my contact form and i would like to catch the data to be sent to me one it has been checked. And I`m having some trouble?
I`ve done some reading and you have to use action scripting:
this is what i have used so far to try and catch the data then be sent to my email,
| Code: |
checkBox = new Object();
checkBox.click = function (evt){
google.enabled = evt.target.selected;
}
checkBox.addEventListener("click", google);
|
i have tested this and when i select this checkbox, what is sent and what i read is:
The data i want to capture is google, The instance name is google but it is also says instance name of CheckBox when i click on properties.
I think i need to work on my action scripting.
Any ideas/advice?
cheers |
|