Login | Register | FAQ
Anonymous

radio-button

+ Post a reply

4 posts Page 1 of 1


radio-button

by lacroixz » Sat Nov 20, 2010 6:47 pm

Hello there,

For some reason my radio-button doesn't 'uncheck'.
Code: Select all
<input type="radio" name="deheer" value="deheer"> Dhr.
<input type="radio" name="mevrouw" value="mevrouw"> Mvr.


Does anybody know how to solve this, since only 'one' (1) option is possible.

Greetings, help will be appreciated!
User avatar

lacroixz

  • Posts: 74
  • Joined: Wed Oct 27, 2010 9:26 pm

Re: radio-button

by HTML.net » Sun Nov 21, 2010 8:50 am

The radio-buttons should have the same name (but different values):

Code: Select all
<input type="radio" name="radio1" value="deheer"> Dhr.
<input type="radio" name="radio1" value="mevrouw"> Mvr.


- Andreas, HTML.net
User avatar

HTML.net
Site Admin

  • Posts: 1194
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: radio-button

by lacroixz » Sun Nov 21, 2010 4:38 pm

I've got a list now instead, but still thanks.
But I've got another question, how can I mail the values of checkboxes?

For example here: http://lacroixz.comuv.com/offerte-aanvragen.php
If you fill in everything it will mail everything, but I still have to fix that it sends the checkbox information aswell.
Hope u can help me!

Greetings.
User avatar

lacroixz

  • Posts: 74
  • Joined: Wed Oct 27, 2010 9:26 pm

Re: radio-button

by lacroixz » Sun Nov 21, 2010 4:50 pm

Dienst01: </br> <? echo($_REQUEST['dienst01'])?> <br/></br>
Dienst02: </br> <? echo($_REQUEST['dienst02'])?> <br/></br>

$email_message .= "Dienst01: ".clean_string($dienst01)."\n";
$email_message .= "Dienst02: ".clean_string($dienst02)."\n";

$dienst01 = $_POST['dienst01'];
$dienst02 = $_POST['dienst02'];

!isset($_POST['dienst01']) ||
!isset($_POST['dienst02']) ||

Didn't work!

Fixed!
User avatar

lacroixz

  • Posts: 74
  • Joined: Wed Oct 27, 2010 9:26 pm


+ Post a reply

Page 1 of 1