# Help with Component

**URL:** <https://forum.kirupa.com/t/help-with-component/101595>\
**Category:** Uncategorized\
**Created:** [February 11, 2004, 7:49pm UTC](https://forum.kirupa.com/t/help-with-component/101595 "2004-02-11T19:49:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geos](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@geos](https://forum.kirupa.com/u/geos)\
**Post date:** [February 11, 2004, 7:49pm UTC](https://forum.kirupa.com/t/help-with-component/101595/1 "2004-02-11T19:49:07Z")

</div>

Im trying to pass values to a php.

My problem is when I try to pass the value (true / false) of a checkbox. Its set to be false by default but the thing is that I have not found the way to pass the “selected” status to my php.

I have the ckbx inside a movieclip and on a button press I pass the variables (loadVariables) from the movieclip to php (POST)

I would like to know how to obtain the current status of the ckbx and pass it to a variable in Flash to send it to php (the last i know how to do)

I tried using if(check1.selected == true) but it does not work

I do not have much experience in AS so i would appreciate a detail answered

thanks

so that you get the code

one button called submit - does the obvious  
check1 - instance name for the checkbox component  
ck1 - instance name for the var (dyn txt) i am using to get the value
