# HTML form, Radiobuttons

**URL:** <https://forum.kirupa.com/t/html-form-radiobuttons/50527>\
**Category:** web dev\
**Created:** [May 4, 2004, 1:24am UTC](https://forum.kirupa.com/t/html-form-radiobuttons/50527 "2004-05-04T01:24:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RussianBeer](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/russianbeer/32/152_2.png) [@RussianBeer](https://forum.kirupa.com/u/RussianBeer)\
**Post date:** [May 4, 2004, 1:24am UTC](https://forum.kirupa.com/t/html-form-radiobuttons/50527/1 "2004-05-04T01:24:39Z")

</div>

Hey can anyone show me a quick script how to make a form where there are two radio buttons and one pops out when the other is selected and vica-versa.  
Mucho Arigato Gozaimas

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2004, 2:29pm UTC](https://forum.kirupa.com/t/html-form-radiobuttons/50527/2 "2004-05-04T14:29:58Z")

</div>

Here is how you do it… I think this what you’re askin’ for, explanation is in the code :be:

```php

<form name="form1">

<input type="radio" name="samename">1. Put them in a form

<input type="radio" name="samename">2. Give them same name

<input type="radio" name="samename">There you go buddy! Viola

</form>

```

Test here:  
\<form name=“form1”\>

\<input type=“radio” name=“radiosample”\>1. Put them in a form

\<input type=“radio” name=“radiosample”\>2. Give them same name

\<input type=“radio” name=“radiosample”\>There you go buddy! Viola

\</form\>
