# \<INPUT\> statement

**URL:** <https://www.phphelp.com/t/input-statement/25138>\
**Category:** HTML & CSS\
**Created:** [April 17, 2016, 4:09pm UTC](https://www.phphelp.com/t/input-statement/25138 "2016-04-17T16:09:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gw32](https://www.phphelp.com/user_avatar/www.phphelp.com/gw32/32/1171_2.png) [@gw32](https://www.phphelp.com/u/gw32)\
**Post date:** [April 17, 2016, 4:09pm UTC](https://www.phphelp.com/t/input-statement/25138/1 "2016-04-17T16:09:00Z")

</div>

I have the following line in my code.  
echo "\<pDid Player Attend? -

";

I need it to send a value = 0 when not selected and a value = 1 when selected.

This is inside a along with other inputs.

How do I do this? I will use PHP, JS, HTML, whatever it takes.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ErnieAlex](https://www.phphelp.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@ErnieAlex](https://www.phphelp.com/u/ErnieAlex)\
**Post date:** [June 8, 2016, 4:16pm UTC](https://www.phphelp.com/t/input-statement/25138/2 "2016-06-08T16:16:42Z")

</div>

Did you solve this? It was marked solved, but, nothing written to show the solution to others.

---

<div class="post-metadata">

**Author:** ![gw32](https://www.phphelp.com/user_avatar/www.phphelp.com/gw32/32/1171_2.png) [@gw32](https://www.phphelp.com/u/gw32)\
**Post date:** [June 8, 2016, 4:41pm UTC](https://www.phphelp.com/t/input-statement/25138/3 "2016-06-08T16:41:48Z")

</div>

Solution:  
Use 2 “radio” buttons

echo “\<p\<font color=“White’”\>Did Player Attend? - \<INPUT TYPE=“radio” NAME=“attend” VALUE=“1”\>Yes\n”;  
echo “\<INPUT TYPE=“radio” NAME=“attend” VALUE=“0”\>No

”;
